Print heuristics probability fraction part with 2 digits.
authorMartin Liska <marxin@gcc.gnu.org>
Fri, 3 Aug 2018 07:23:47 +0000 (07:23 +0000)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 3 Aug 2018 07:23:47 +0000 (07:23 +0000)
2018-08-03  Martin Liska  <mliska@suse.cz>

* predict.c (dump_prediction): Change to 2 digits
        in fraction part.
2018-08-03  Martin Liska  <mliska@suse.cz>

* gcc.dg/predict-1.c: Adjust scanned pattern to cover 2 digits.
* gcc.dg/predict-13.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.
* gcc.dg/predict-9.c:Likewise.
* gfortran.dg/predict-1.f90:Likewise.

From-SVN: r263286

gcc/ChangeLog
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/predict-1.c
gcc/testsuite/gcc.dg/predict-13.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
gcc/testsuite/gcc.dg/predict-9.c
gcc/testsuite/gfortran.dg/predict-1.f90

index 77d110d3c73d26f73c9abb01e74495d7ba0bf73a..885534076120207f41b62ab2eb1e7519813ad9d2 100644 (file)
@@ -1,3 +1,8 @@
+2018-08-03  Martin Liska  <mliska@suse.cz>
+
+       * predict.c (dump_prediction): Change to 2 digits
+        in fraction part.
+
 2018-08-03  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
        * config/aarch64/falkor.md (falkor_am_1_vxvy_vxvy): Move
index 65e088fb8df6d8aca9df89cb11aa20ab3d935d37..a6769eda1c776dcdfbc9b879ca3552d90b185968 100644 (file)
@@ -734,7 +734,7 @@ dump_prediction (FILE *file, enum br_predictor predictor, int probability,
   else
     edge_info_str[0] = '\0';
 
-  fprintf (file, "  %s heuristics%s%s: %.1f%%",
+  fprintf (file, "  %s heuristics%s%s: %.2f%%",
           predictor_info[predictor].name,
           edge_info_str, reason_messages[reason],
           probability * 100.0 / REG_BR_PROB_BASE);
index 5400bbe9c923e3dea9e83f7ae2d3ee492d49a407..f0ef23755c3869a602b9887a6318fdcf07d96d48 100644 (file)
@@ -1,3 +1,14 @@
+2018-08-03  Martin Liska  <mliska@suse.cz>
+
+       * gcc.dg/predict-1.c: Adjust scanned pattern to cover 2 digits.
+       * gcc.dg/predict-13.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.
+       * gcc.dg/predict-9.c:Likewise.
+       * gfortran.dg/predict-1.f90:Likewise.
+
 2018-08-02  Richard Biener  <rguenther@suse.de>
 
        PR c++/86763
 
        PR tree-optimization/86636
        * gcc.c-torture/compile/pr86636.c: New test.
-\r
-2018-07-24  Matthew Malcomson  <matthew.malcomson@arm.com>\r
-\r
-       * gcc.target/aarch64/simd/vect_su_add_sub.c: New.\r
-\r
-2018-07-24  Jakub Jelinek  <jakub@redhat.com>\r
-\r
+
+2018-07-24  Matthew Malcomson  <matthew.malcomson@arm.com>
+
+       * gcc.target/aarch64/simd/vect_su_add_sub.c: New.
+
+2018-07-24  Jakub Jelinek  <jakub@redhat.com>
+
        PR middle-end/86627
        * gcc.target/i386/pr86627.c: New test.
 
index 4ba26e6e256b98a3284a737e651fc520b897ebcf..9e5605a2e8471a8375c6451bb1eec490f08782e0 100644 (file)
@@ -23,4 +23,4 @@ void foo (int bound)
     }
 }
 
-/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 36.0%" 4 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 36.00%" 4 "profile_estimate"} } */
index 385be9e138901a0cd215a6245ff60da0d5d5ad42..c6da45f8127b16ed8482733d30fdefdba6e599eb 100644 (file)
@@ -20,5 +20,5 @@ int main(int argc, char **argv)
   return 10;
 }
 
-/* { dg-final { scan-tree-dump-times "combined heuristics of edge\[^:\]*: 33.3%" 3 "profile_estimate"} } */
-/* { dg-final { scan-tree-dump-times "combined heuristics of edge\[^:\]*: 0.1%" 2 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "combined heuristics of edge\[^:\]*: 33.30%" 3 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "combined heuristics of edge\[^:\]*: 0.05%" 2 "profile_estimate"} } */
index 81addde1667ff0a4f4a8bf12570f9a3f05e625ea..f3f416345e59937d1764496e7c5a396b49beced7 100644 (file)
@@ -25,4 +25,4 @@ void foo (int bound)
     }
 }
 
-/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 64.0%" 3 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 64.00%" 3 "profile_estimate"} } */
index 2ac2ec5721d2a00a9ea886b0076111338e083781..851afb1cff57b9493ad51596a7d35dd0fe08f860 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.00%" "profile_estimate"} } */
index c80b2928d57c3ab90e91fdf7943b7b616098e86b..5af5db1825e85c50e478ea9778ae0bdf1216db6e 100644 (file)
@@ -21,4 +21,4 @@ void foo (int base, int bound)
     }
 }
 
-/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 64.0%" 4 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 64.00%" 4 "profile_estimate"} } */
index 3acc7644629aa4ff05a9961d98d1cd99f0fee63c..5d6fbf158f298c927704c74de8e98c418006f2ba 100644 (file)
@@ -21,4 +21,4 @@ void foo (int base, int bound)
     }
 }
 
-/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 36.0%" 4 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "guess loop iv compare heuristics of edge\[^:\]*: 36.00%" 4 "profile_estimate"} } */
index 3823775e3f86896f462f9000f5638ba0f2a4bfba..7e5ba085ecea2c5014c1a5977ac269e31a8b71b8 100644 (file)
@@ -19,5 +19,5 @@ void foo (int base)
   }
 }
 
-/* { dg-final { scan-tree-dump-times "first match heuristics: 2.2%" 3 "profile_estimate"} } */
-/* { dg-final { scan-tree-dump-times "first match heuristics: 5.5%" 1 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "first match heuristics: 2.20%" 3 "profile_estimate"} } */
+/* { dg-final { scan-tree-dump-times "first match heuristics: 5.50%" 1 "profile_estimate"} } */
index a3feea9b12383d6dff0781be3b783c92aca29cf0..5360c6185154ec56ffef38ff99a480dea766dccb 100644 (file)
@@ -14,4 +14,4 @@ end do
 
 end subroutine test
 
-! { dg-final { scan-tree-dump-times "Fortran loop preheader heuristics of edge\[^:\]*: 1.0%" 2 "profile_estimate" } }
+! { dg-final { scan-tree-dump-times "Fortran loop preheader heuristics of edge\[^:\]*: 1.00%" 2 "profile_estimate" } }