Fixes for AutoFDO tests
authorEugene Rozenfeld <erozen@microsoft.com>
Tue, 3 Aug 2021 00:12:04 +0000 (17:12 -0700)
committerEugene Rozenfeld <erozen@microsoft.com>
Tue, 3 Aug 2021 21:25:47 +0000 (14:25 -0700)
commitf9ad3d5339faaaed6e15a7b27d90fbc66eb72f37
tree66f41e2162aab83c0fafdd1229b84b0b91cee7a0
parentaabf07cd5dc314135adde89830a86be157d7596b
Fixes for AutoFDO tests

* Changed several tests to use -fdump-ipa-afdo-optimized instead of -fdump-ipa-afdo
in dg-options so that the expected output can be found

* Increased the number of iterations in several tests so that perf can have
enough sampling events

Contributes to fixing PR gcov-profile/71672.

gcc/testsuite/ChangeLog:

* g++.dg/tree-prof/indir-call-prof.C: Fix options, increase the number of iterations.
* g++.dg/tree-prof/morefunc.C: Fix options, increase the number of iterations.
* g++.dg/tree-prof/reorder.C: Fix options, increase the number of iterations.
* gcc.dg/tree-prof/indir-call-prof-2.c: Fix options, increase the number of iterations.
* gcc.dg/tree-prof/indir-call-prof.c: Fix options.
gcc/testsuite/g++.dg/tree-prof/indir-call-prof.C
gcc/testsuite/g++.dg/tree-prof/morefunc.C
gcc/testsuite/g++.dg/tree-prof/reorder.C
gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-2.c
gcc/testsuite/gcc.dg/tree-prof/indir-call-prof.c