diff options
author | Jan Hubicka <jh@suse.cz> | 2001-06-20 21:55:43 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2001-06-20 19:55:43 +0000 |
commit | 86e5b1b905ab077168902d6a7b62c51678f38d4f (patch) | |
tree | 2454c876f308e7bfbc3197acab400eadb34d4cc1 /gcc | |
parent | 097c2d51de5728480afd2a42ae0f4a8d65e889a1 (diff) | |
download | gcc-86e5b1b905ab077168902d6a7b62c51678f38d4f.zip gcc-86e5b1b905ab077168902d6a7b62c51678f38d4f.tar.gz gcc-86e5b1b905ab077168902d6a7b62c51678f38d4f.tar.bz2 |
* predict.c (estimate_probability): Fix loop bounds.
From-SVN: r43478
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/predict.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4370b43..3e14482 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Wed Jun 20 21:53:35 CEST 2001 Jan Hubicka <jh@suse.cz> + + * predict.c (estimate_probability): Fix loop bounds. + Wed Jun 20 19:10:48 CEST 2001 Jan Hubicka <jh@suse.cz> * toplev.c (rest_of_compilation): Run mark_constant_function diff --git a/gcc/predict.c b/gcc/predict.c index b3409a4..058adb5 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); |