]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix indir-call-prof-2.c with AutoFDO
authorEugene Rozenfeld <erozen@microsoft.com>
Tue, 3 Aug 2021 00:22:34 +0000 (17:22 -0700)
committerEugene Rozenfeld <erozen@microsoft.com>
Tue, 3 Aug 2021 21:26:27 +0000 (14:26 -0700)
commit0ed093c7c3f755bc1cd80e5186abeb2f5c50ee0c
tree0690e09e10ca5029f5847d60a454c9e2d95af22a
parentf9ad3d5339faaaed6e15a7b27d90fbc66eb72f37
Fix indir-call-prof-2.c with AutoFDO

indir-call-prof-2.c has -fno-early-inlining but AutoFDO can't work without
early inlining (it needs to match the inlining of the profiled binary).
I changed profopt.exp to always pass -fearly-inlining for AutoFDO.
With that change the indirect call inlining in indir-call-prof-2.c happens in the early inliner
so I changed the dg-final-use-autofdo.

Contributes to fixing PR gcov-profile/71672

gcc/testsuite/ChangeLog:

* gcc.dg/tree-prof/indir-call-prof-2.c: Fix dg-final-use-autofdo.
* lib/profopt.exp: Pass -fearly-inlining when compiling with AutoFDO.
gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-2.c
gcc/testsuite/lib/profopt.exp