Fix another failing test-case.
authorMartin Liska <mliska@suse.cz>
Tue, 19 Dec 2017 13:21:07 +0000 (14:21 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 19 Dec 2017 13:21:07 +0000 (13:21 +0000)
2017-12-19  Martin Liska  <mliska@suse.cz>

* 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.

From-SVN: r255819

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/switch-case-1.c

index 5c61361b4824fba7327d643a57301ce0bc961d88..5dea098306bfc2f20adf1f4cef724ea9a0b27051 100644 (file)
@@ -1,3 +1,9 @@
+2017-12-19  Martin Liska  <mliska@suse.cz>
+
+       * 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.
+
 2017-12-19  Marek Polacek  <polacek@redhat.com>
 
        PR tree-optimization/83482
index 6a9af083a9a22dfa356b06636cba9cfeff8a4b2c..a5a430a8ed5595f43f1057dcf864368b4e810086 100644 (file)
@@ -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"} } */