Make 'loop iv compare' heuristics scanning more precise
authorMartin Liska <mliska@suse.cz>
Mon, 13 Jun 2016 14:03:51 +0000 (16:03 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 13 Jun 2016 14:03:51 +0000 (14:03 +0000)
* gcc.dg/predict-1.c: Distinguish between "loop iv compare"
and "guess loop iv compared" heuristics.
* gcc.dg/predict-2.c: Likewise.
* gcc.dg/predict-3.c: Likewise.
* gcc.dg/predict-4.c: Likewise.
* gcc.dg/predict-5.c: Likewise.
* gcc.dg/predict-6.c: Likewise.

From-SVN: r237380

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/predict-1.c
gcc/testsuite/gcc.dg/predict-2.c
gcc/testsuite/gcc.dg/predict-3.c
gcc/testsuite/gcc.dg/predict-4.c
gcc/testsuite/gcc.dg/predict-5.c
gcc/testsuite/gcc.dg/predict-6.c

index 98af7659e1bafcd1fe287ae2f7dfc85b0a814852..db8d555852cf672af98b621ef83a597a30739ec9 100644 (file)
@@ -1,3 +1,13 @@
+2016-06-13  Martin Liska  <mliska@suse.cz>
+
+       * gcc.dg/predict-1.c: Distinguish between "loop iv compare"
+       and "guess loop iv compared" heuristics.
+       * gcc.dg/predict-2.c: Likewise.
+       * gcc.dg/predict-3.c: Likewise.
+       * gcc.dg/predict-4.c: Likewise.
+       * gcc.dg/predict-5.c: Likewise.
+       * gcc.dg/predict-6.c: Likewise.
+
 2016-06-13  Marek Polacek  <polacek@redhat.com>
 
        PR middle-end/71476
index d0924f27bdf8106bd3c26b0811cf96ca3f9a6dad..10d62bac5d5cd7ddeaa6571a5592be84f9dc9818 100644 (file)
@@ -23,4 +23,4 @@ void foo (int bound)
     }
 }
 
-/* { dg-final { scan-tree-dump-times "loop iv compare heuristics of edge\[^:\]*: 2.0%" 5 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 2.0%" 5 "profile_estimate"} } */
index 30116864d5df3dcb6a21588f785833b3b24caf1c..aa915688c68b9faa80f34827624aff59b7cbbcad 100644 (file)
@@ -23,4 +23,4 @@ void foo (int base, int bound)
     }
 }
 
-/* { dg-final { scan-tree-dump-not "loop iv compare heuristics of edge\[^:\]*:" "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-not "guess loop iv compare heuristics of edge\[^:\]*:" "profile_estimate"} } */
index 663f1411025aaced05b9472ad9e90dd16f439250..7274963b9435e7fc87362ead3594812e01618cc5 100644 (file)
@@ -25,4 +25,4 @@ void foo (int bound)
     }
 }
 
-/* { dg-final { scan-tree-dump-times "loop iv compare heuristics of edge\[^:\]*: 98.0%" 3 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 98.0%" 3 "profile_estimate"} } */
index 5779da36ee9810587de516579db9ecc0fdaf88d4..2ac2ec5721d2a00a9ea886b0076111338e083781 100644 (file)
@@ -15,4 +15,4 @@ void foo (int bound)
     }
 }
 
-/* { dg-final { scan-tree-dump "loop iv compare heuristics of edge\[^:\]*: 50.0%" "profile_estimate"} } */
+/* { dg-final { scan-tree-dump "  loop iv compare heuristics of edge\[^:\]*: 50.0%" "profile_estimate"} } */
index 56ada306b9787988c6814e89eee44d1f86fac56a..135081de2a46d90b4336d420c7e23083d5177f42 100644 (file)
@@ -21,4 +21,4 @@ void foo (int base, int bound)
     }
 }
 
-/* { dg-final { scan-tree-dump-times "loop iv compare heuristics of edge\[^:\]*: 98.0%" 4 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 98.0%" 4 "profile_estimate"} } */
index 9ed41ed0d92384865a4524f046db81814e8c14ae..104683f7f434b4f61c3ca76d1a998671e68c4979 100644 (file)
@@ -21,4 +21,4 @@ void foo (int base, int bound)
     }
 }
 
-/* { dg-final { scan-tree-dump-times "loop iv compare heuristics of edge\[^:\]*: 2.0%" 4 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 2.0%" 4 "profile_estimate"} } */