From e4570be2df2c2fd62d21bca829376670cbb96dc2 Mon Sep 17 00:00:00 2001 From: marxin Date: Tue, 19 Dec 2017 11:47:56 +0100 Subject: [PATCH] Fix another failing test-case. gcc/testsuite/ChangeLog: 2017-12-19 Martin Liska * gcc.dg/tree-prof/switch-case-1.c: Scan IPA profile dump file instead of expand in order to not mix it with expanded tree decision tree for the switch statement. --- gcc/testsuite/gcc.dg/tree-prof/switch-case-1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.dg/tree-prof/switch-case-1.c b/gcc/testsuite/gcc.dg/tree-prof/switch-case-1.c index 6a9af083a9a..a5a430a8ed5 100644 --- a/gcc/testsuite/gcc.dg/tree-prof/switch-case-1.c +++ b/gcc/testsuite/gcc.dg/tree-prof/switch-case-1.c @@ -1,4 +1,4 @@ -/* { dg-options "-O2 -fdump-rtl-expand-all" } */ +/* { dg-options "-O2 -fdump-ipa-profile-all" } */ int g; __attribute__((noinline)) void foo (int n) @@ -36,5 +36,5 @@ int main () return 0; } /* autofdo cannot do that precise execution numbers */ -/* { dg-final-use-not-autofdo { scan-rtl-dump-times ";; basic block\[^\\n\]*count 4000" 2 "expand"} } */ -/* { dg-final-use-not-autofdo { scan-rtl-dump-times ";; basic block\[^\\n\]*count 2000" 1 "expand"} } */ +/* { dg-final-use-not-autofdo { scan-ipa-dump-times ";; basic block\[^\\n\]*count 4000" 2 "profile"} } */ +/* { dg-final-use-not-autofdo { scan-ipa-dump-times ";; basic block\[^\\n\]*count 2000" 1 "profile"} } */ -- 2.14.3