Commit 86e5b1b9 by Jan Hubicka Committed by Jan Hubicka

* predict.c (estimate_probability): Fix loop bounds.

From-SVN: r43478
parent 097c2d51
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> Wed Jun 20 19:10:48 CEST 2001 Jan Hubicka <jh@suse.cz>
* toplev.c (rest_of_compilation): Run mark_constant_function * toplev.c (rest_of_compilation): Run mark_constant_function
......
...@@ -290,7 +290,7 @@ estimate_probability (loops_info) ...@@ -290,7 +290,7 @@ estimate_probability (loops_info)
For each conditional jump, we try each heuristic in a fixed order. For each conditional jump, we try each heuristic in a fixed order.
If more than one heuristic applies to a particular branch, the first If more than one heuristic applies to a particular branch, the first
is used as the prediction for the branch. */ 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); basic_block bb = BASIC_BLOCK (i);
rtx last_insn = bb->end; rtx last_insn = bb->end;
...@@ -429,7 +429,7 @@ estimate_probability (loops_info) ...@@ -429,7 +429,7 @@ estimate_probability (loops_info)
} }
/* Attach the combined probability to each conditional jump. */ /* 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); rtx last_insn = BLOCK_END (i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment