Commit 7d2a46a8 by Graham Stott Committed by Jeff Law

loop.c (check_dbra_loop): Initialise final_value before normalizing the loop.

        * loop.c (check_dbra_loop): Initialise final_value before
        normalizing the loop.

From-SVN: r20213
parent 5a3321e1
Thu Jun 4 00:54:21 1998 Graham <grahams@rcp.co.uk>
* loop.c (check_dbra_loop): Initialise final_value before
normalizing the loop.
Wed Jun 3 20:00:04 1998 J"orn Rennecke <amylaar@cygnus.co.uk> Wed Jun 3 20:00:04 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* reload1.c (reload_reg_free_for_value_p): New arguments out and * reload1.c (reload_reg_free_for_value_p): New arguments out and
......
...@@ -6316,6 +6316,7 @@ check_dbra_loop (loop_end, insn_count, loop_start) ...@@ -6316,6 +6316,7 @@ check_dbra_loop (loop_end, insn_count, loop_start)
add_val = INTVAL (bl->biv->add_val); add_val = INTVAL (bl->biv->add_val);
comparison_val = INTVAL (XEXP (comparison, 1)); comparison_val = INTVAL (XEXP (comparison, 1));
final_value = XEXP (comparison, 1);
initial_value = bl->initial_value; initial_value = bl->initial_value;
/* Normalize the initial value if it is an integer and /* Normalize the initial value if it is an integer and
...@@ -6353,7 +6354,6 @@ check_dbra_loop (loop_end, insn_count, loop_start) ...@@ -6353,7 +6354,6 @@ check_dbra_loop (loop_end, insn_count, loop_start)
jump_label = XEXP (SET_SRC (PATTERN (PREV_INSN (loop_end))), 2); jump_label = XEXP (SET_SRC (PATTERN (PREV_INSN (loop_end))), 2);
new_add_val = GEN_INT (- INTVAL (bl->biv->add_val)); new_add_val = GEN_INT (- INTVAL (bl->biv->add_val));
final_value = XEXP (comparison, 1);
start_value = GEN_INT (INTVAL (XEXP (comparison, 1)) start_value = GEN_INT (INTVAL (XEXP (comparison, 1))
- INTVAL (bl->biv->add_val)); - INTVAL (bl->biv->add_val));
......
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