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
This commit is contained in:
Andrew Pinski 2004-04-02 01:19:41 +00:00 committed by Andrew Pinski
parent b52d4110bf
commit cd798543d8
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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>
* genemit.c (gen_split): Change prototype of generated code.

View File

@ -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. */
if (! INSN_P (insn))
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))
if (REG_NOTE_KIND (link) == kind
&& (datum == 0 || datum == XEXP (link, 0)))
if (REG_NOTE_KIND (link) == kind && datum == XEXP (link, 0))
return link;
return 0;
}