indir-call-prof.C
837 Bytes
-
Some fixes for profile test cases for autofdo · f63ba78c
This fixes some basic issues with the profile test cases with autofdo. - Disable checking for value transformations that autofdo does not support. - Disable checking for fixed hit counts which autofdo does not support - Enable dumping of afdo log file and check right log file. - Increase run time of test cases to 1M iterations because autofdo needs a few samples to make sense of a program. The test case don't run noticeable slower with that. There are still failures unfortunately, especially the indirect call transformations do not trigger because autofdo thinks they are not hot. This can be addressed later. gcc/testsuite/: 2016-07-13 Andi Kleen <ak@linux.intel.com> * g++.dg/tree-prof/indir-call-prof.C: Basic fixes for autofdo. * g++.dg/tree-prof/morefunc.C: Dito. * g++.dg/tree-prof/pr35545.C: Dito. * g++.dg/tree-prof/reorder.C: Dito. * gcc.dg/tree-prof/20050826-2.c: Dito. * gcc.dg/tree-prof/cmpsf-1.c: Dito. * gcc.dg/tree-prof/cold_partition_label.c: Dito. * gcc.dg/tree-prof/ic-misattribution-1.c: Dito. * gcc.dg/tree-prof/indir-call-prof.c: Dito. * gcc.dg/tree-prof/inliner-1.c: Dito. * gcc.dg/tree-prof/merge_block.c: Dito. * gcc.dg/tree-prof/stringop-1.c: Dito. * gcc.dg/tree-prof/stringop-2.c: Dito. * gcc.dg/tree-prof/switch-case-1.c: Dito. * gcc.dg/tree-prof/switch-case-2.c: Dito. * gcc.dg/tree-prof/time-profiler-1.c: Dito. * gcc.dg/tree-prof/time-profiler-2.c: Dito. * gcc.dg/tree-prof/update-loopch.c: Dito. * gcc.dg/tree-prof/val-prof-1.c: Dito. * gcc.dg/tree-prof/val-prof-2.c: Dito. * gcc.dg/tree-prof/val-prof-3.c: Dito. * gcc.dg/tree-prof/val-prof-4.c: Dito. * gcc.dg/tree-prof/val-prof-5.c: Dito. * gcc.dg/tree-prof/val-prof-6.c: Dito. * gcc.dg/tree-prof/val-prof-7.c: Dito. From-SVN: r238325
Andi Kleen committed