]> gcc.gnu.org Git - gcc.git/commitdiff
* predict.c (estimate_probability): Fix LOOP_EXIT heuristic.
authorJan Hubicka <jh@suse.cz>
Fri, 14 Dec 2001 21:28:49 +0000 (22:28 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 14 Dec 2001 21:28:49 +0000 (21:28 +0000)
From-SVN: r48010

gcc/ChangeLog
gcc/predict.c

index e013d73051c58aec4d0a1738ef893b7e0c583b70..6b54c2d40ecf2ec924612a82bae53179d13fbe9c 100644 (file)
@@ -1,3 +1,7 @@
+Fri Dec 14 22:14:44 CET 2001  Jan Hubicka  <jh@suse.cz>
+
+       * predict.c (estimate_probability): Fix LOOP_EXIT heuristic.
+
 2001-12-14  Zack Weinberg  <zack@codesourcery.com>
 
        * combine.c (record_dead_and_set_regs): Use
index 92b956b6cc81489ebd6654cd57a26275b3083383..44142c0380ab48715886dc09d372dc8626e26c0b 100644 (file)
@@ -358,7 +358,7 @@ estimate_probability (loops_info)
                 successors.  */
              if (!header_found)
                for (e = BASIC_BLOCK(j)->succ; e; e = e->succ_next)
-                 if (e->dest->index <= 0
+                 if (e->dest->index < 0
                      || !TEST_BIT (loop->nodes, e->dest->index))
                    predict_edge (e, PRED_LOOP_EXIT,
                                  (REG_BR_PROB_BASE
This page took 0.082528 seconds and 5 git commands to generate.