https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80505
--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> --- (In reply to Martin Liška from comment #3) > > And by the way, I tend to think that the testcase should use > > -fno-indirect-inlining option, the indirect call is direct when the > > IPA layer sees it. > > Why should we add -fno-indirect-inlining to the test? I meant -fno-early-inlining, sorry. The reason is that early inlining inlines hiphip() to test() and then constant propagation turns the indirect call into a direct one before IPA inliner (well, IPA-CP, but anyway) sees it. So, at least as far as internal representation is concerned, we never actually do inlining of an indirect call. However, it really depends on why such a test using indirect calls was added in the first place and that (i.e. why direct calls are not enough) is not clear to me. Maybe we are fine.