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:
parent
b52d4110bf
commit
cd798543d8
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user