Commit cd798543 by Andrew Pinski Committed by Andrew Pinski

rtlanal.c (find_reg_note): Manually unswitch the loop.

2004-04-01  Andrew Pinski  <pinskia@physics.uc.edu>

        * rtlanal.c (find_reg_note): Manually
        unswitch the loop.

From-SVN: r80347
parent b52d4110
2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
* rtlanal.c (find_reg_note): Manually
unswitch the loop.
2004-04-01 Mark Mitchell <mark@codesourcery.com> 2004-04-01 Mark Mitchell <mark@codesourcery.com>
* genemit.c (gen_split): Change prototype of generated code. * genemit.c (gen_split): Change prototype of generated code.
......
...@@ -1911,10 +1911,16 @@ find_reg_note (rtx insn, enum reg_note kind, rtx datum) ...@@ -1911,10 +1911,16 @@ find_reg_note (rtx insn, enum reg_note kind, rtx datum)
/* Ignore anything that is not an INSN, JUMP_INSN or CALL_INSN. */ /* Ignore anything that is not an INSN, JUMP_INSN or CALL_INSN. */
if (! INSN_P (insn)) if (! INSN_P (insn))
return 0; return 0;
if (datum == 0)
{
for (link = REG_NOTES (insn); link; link = XEXP (link, 1))
if (REG_NOTE_KIND (link) == kind)
return link;
return 0;
}
for (link = REG_NOTES (insn); link; link = XEXP (link, 1)) for (link = REG_NOTES (insn); link; link = XEXP (link, 1))
if (REG_NOTE_KIND (link) == kind if (REG_NOTE_KIND (link) == kind && datum == XEXP (link, 0))
&& (datum == 0 || datum == XEXP (link, 0)))
return link; return link;
return 0; return 0;
} }
......
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