[COMMITTED] Fix time-profiler-3.c after r14-5628-g53ba8d669550d3

Message ID 20231127225818.613815-1-quic_apinski@quicinc.com
State Accepted
Headers
Series [COMMITTED] Fix time-profiler-3.c after r14-5628-g53ba8d669550d3 |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Andrew Pinski (QUIC) Nov. 27, 2023, 10:58 p.m. UTC
  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:

	* gcc.dg/tree-prof/time-profiler-3.c: Add -fno-ipa-vrp.
---
 gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c b/gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c
index 69ce0260828..e54a06a7827 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c
@@ -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))