From cd2519a6f857539262398f3ff63b53de173e2a88 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Mon, 27 Nov 2023 10:08:33 -0800 Subject: [PATCH] Fix time-profiler-3.c after r14-5628-g53ba8d669550d3 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))