loop.c (strength_reduce): Fix HAVE_cc0 handling when scanning forward from cont dominator.

* loop.c (strength_reduce): Fix HAVE_cc0 handling when scanning
	forward from cont dominator.

From-SVN: r24903
This commit is contained in:
J"orn Rennecke 1999-01-29 07:46:16 +00:00 committed by Joern Rennecke
parent aa1b0f8cc7
commit 22b4cc6595
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Fri Jan 29 15:44:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* loop.c (strength_reduce): Fix HAVE_cc0 handling when scanning
forward from cont dominator.
Fri Jan 29 07:10:27 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cccp.c (eprint_string): Constify a char*.

View File

@ -4036,11 +4036,10 @@ strength_reduce (scan_start, end, loop_top, insn_count,
&& ! reg_used_between_p (giv, giv_insn, loop_end))
{
rtx p;
rtx next;
for (;;)
for (next = NEXT_INSN (dominator); ; next = NEXT_INSN (next))
{
rtx next = NEXT_INSN (dominator);
if ((GET_RTX_CLASS (GET_CODE (next)) == 'i'
&& (reg_mentioned_p (giv, PATTERN (next))
|| reg_set_p (bl2->biv->src_reg, next)))