Commit b1a0c816 by Jeffrey A Law Committed by Jeff Law

loop.c (rtx_equal_for_loop_p): Add some braces to disambiguate a dangling else clause.

        * loop.c (rtx_equal_for_loop_p): Add some braces to disambiguate
        a dangling else clause.

From-SVN: r18047
parent c03f7543
Tue Feb 17 22:31:04 1998 Jeffrey A Law (law@cygnus.com)
* loop.c (rtx_equal_for_loop_p): Add some braces to disambiguate
a dangling else clause.
Tue Feb 17 21:28:12 1998 Gavin Koch <gavin@cygnus.com> Tue Feb 17 21:28:12 1998 Gavin Koch <gavin@cygnus.com>
* mips/mips.h (CAN_ELIMINATE): Don't eliminate the frame * mips/mips.h (CAN_ELIMINATE): Don't eliminate the frame
......
...@@ -1477,17 +1477,20 @@ rtx_equal_for_loop_p (x, y, movables) ...@@ -1477,17 +1477,20 @@ rtx_equal_for_loop_p (x, y, movables)
equal. */ equal. */
if (GET_CODE (x) == REG && n_times_set[REGNO (x)] == -2 if (GET_CODE (x) == REG && n_times_set[REGNO (x)] == -2
&& CONSTANT_P (y)) && CONSTANT_P (y))
for (m = movables; m; m = m->next) {
if (m->move_insn && m->regno == REGNO (x) for (m = movables; m; m = m->next)
&& rtx_equal_p (m->set_src, y)) if (m->move_insn && m->regno == REGNO (x)
return 1; && rtx_equal_p (m->set_src, y))
return 1;
}
else if (GET_CODE (y) == REG && n_times_set[REGNO (y)] == -2 else if (GET_CODE (y) == REG && n_times_set[REGNO (y)] == -2
&& CONSTANT_P (x)) && CONSTANT_P (x))
for (m = movables; m; m = m->next) {
if (m->move_insn && m->regno == REGNO (y) for (m = movables; m; m = m->next)
&& rtx_equal_p (m->set_src, x)) if (m->move_insn && m->regno == REGNO (y)
return 1; && rtx_equal_p (m->set_src, x))
return 1;
}
/* Otherwise, rtx's of different codes cannot be equal. */ /* Otherwise, rtx's of different codes cannot be equal. */
if (code != GET_CODE (y)) if (code != GET_CODE (y))
......
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