]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix time-profiler-3.c after r14-5628-g53ba8d669550d3
authorAndrew Pinski <quic_apinski@quicinc.com>
Mon, 27 Nov 2023 18:08:33 +0000 (10:08 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Mon, 27 Nov 2023 22:59:56 +0000 (14:59 -0800)
This testcase started to fail after r14-5628-g53ba8d669550d3 because
IPA-VRP can now start to figure out the functions return a constant
value and there was nothing that profiling needed to profile any more.
This disables IPA-VRP for this testcase to be able to profile again.

Bootrapped/tested on x86_64-linux-gnu with no regressions.

gcc/testsuite/ChangeLog:

PR testsuite/112689
* gcc.dg/tree-prof/time-profiler-3.c: Add -fno-ipa-vrp.

gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c

index 69ce026082851cfea723c80be463517e9f93498a..e54a06a7827164cb37b13f74817f77044aeb78ac 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -fdump-ipa-profile -fprofile-update=atomic" } */
+/* { dg-options "-O2 -fdump-ipa-profile -fprofile-update=atomic -fno-ipa-vrp" } */
 /* { dg-require-effective-target profile_update_atomic } */
 
 __attribute__ ((noinline))