summaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-20 19:55:43 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-20 19:55:43 +0000
commit609f152b76290bb424b3049375bb38b699de8385 (patch)
tree2454c876f308e7bfbc3197acab400eadb34d4cc1 /gcc/predict.c
parent1773dd14c9b1b6784c2d3b53603235e1a0cd0124 (diff)
downloadgcc-609f152b76290bb424b3049375bb38b699de8385.tar.gz
* predict.c (estimate_probability): Fix loop bounds.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43478 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index b3409a47ccf..058adb51e25 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -290,7 +290,7 @@ estimate_probability (loops_info)
For each conditional jump, we try each heuristic in a fixed order.
If more than one heuristic applies to a particular branch, the first
is used as the prediction for the branch. */
- for (i = 0; i < n_basic_blocks - 1; i++)
+ for (i = 0; i < n_basic_blocks; i++)
{
basic_block bb = BASIC_BLOCK (i);
rtx last_insn = bb->end;
@@ -429,7 +429,7 @@ estimate_probability (loops_info)
}
/* Attach the combined probability to each conditional jump. */
- for (i = 0; i < n_basic_blocks - 1; i++)
+ for (i = 0; i < n_basic_blocks; i++)
{
rtx last_insn = BLOCK_END (i);