OSDN Git Service

* predict.c (propagate_freq): Compute correctly frequency of
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Mar 2004 15:03:12 +0000 (15:03 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Mar 2004 15:03:12 +0000 (15:03 +0000)
EXIT_BLOCK.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79621 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/predict.c

index 0ce701f..e24a842 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-18  Jan Hubicka  <jh@suse.cz>
+
+       * predict.c (propagate_freq): Compute correctly frequency of
+       EXIT_BLOCK.
+
 2004-03-17  Eric Christopher  <echristo@redhat.com>
 
        * builtins.c (apply_args_size): Use reg_raw_mode.
index a7a1f23..669760b 100644 (file)
@@ -905,7 +905,7 @@ propagate_freq (struct loop *loop)
 
   /* For each basic block we need to visit count number of his predecessors
      we need to visit first.  */
-  FOR_EACH_BB (bb)
+  FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR, NULL, next_bb)
     {
       if (BLOCK_INFO (bb)->tovisit)
        {