diff options
author | Martin Liska <mliska@suse.cz> | 2017-10-18 14:44:08 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-10-18 12:44:08 +0000 |
commit | 28e2e23607381f057e694c373025433d414e2750 (patch) | |
tree | 29dd250888e3464dc839ae35f27a61bda307a10f /gcc | |
parent | 368b626f2626a7752a18c7f9b817e49f3f587226 (diff) | |
download | gcc-28e2e23607381f057e694c373025433d414e2750.zip gcc-28e2e23607381f057e694c373025433d414e2750.tar.gz gcc-28e2e23607381f057e694c373025433d414e2750.tar.bz2 |
Fix failing test-case
2017-10-18 Martin Liska <mliska@suse.cz>
* gcc.dg/tree-prof/switch-case-2.c: Scan IPA profile dump
file instead of expand. Reason is that switch statement is
not yet expanded as decision tree, which also contains a BB
with count == 2000.
From-SVN: r253854
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-prof/switch-case-2.c | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a43894f..37454e1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2017-10-18 Martin Liska <mliska@suse.cz> + + * gcc.dg/tree-prof/switch-case-2.c: Scan IPA profile dump + file instead of expand. Reason is that switch statement is + not yet expanded as decision tree, which also contains a BB + with count == 2000. + 017-10-18 Paul Thomas <pault@gcc.gnu.org> PR fortran/82550 diff --git a/gcc/testsuite/gcc.dg/tree-prof/switch-case-2.c b/gcc/testsuite/gcc.dg/tree-prof/switch-case-2.c index cfedc9c..9b0dfc2 100644 --- a/gcc/testsuite/gcc.dg/tree-prof/switch-case-2.c +++ b/gcc/testsuite/gcc.dg/tree-prof/switch-case-2.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"} } */ |