summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-18 15:03:12 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-18 15:03:12 +0000
commitd10d29c07cd3778710a992d364941427b123f683 (patch)
treea9a0765bd2f86be10f7353a57a0e972c6feb1f4a
parente1e51a4a5724cbe7049559fa85b1f070d3579551 (diff)
downloadgcc-d10d29c07cd3778710a992d364941427b123f683.tar.gz
* predict.c (propagate_freq): Compute correctly frequency of
EXIT_BLOCK. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79621 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/predict.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0ce701fcc51..e24a842f752 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/predict.c b/gcc/predict.c
index a7a1f235cc7..669760bf41f 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -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)
{