regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
2005-08-24 Paolo Bonzini <bonzini@gnu.org> Jan Hubicka <jh@suse.cz> * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r103472
This commit is contained in:
parent
e288982373
commit
0621d71a5c
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-08-24 Paolo Bonzini <bonzini@gnu.org>
|
||||
Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
|
||||
|
||||
2005-08-24 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
PR tree-optimization/23546
|
||||
|
|
|
@ -859,13 +859,13 @@ reg_is_remote_constant_p (rtx reg, rtx insn, rtx first)
|
|||
return 0;
|
||||
|
||||
/* Look for the set. */
|
||||
for (p = LOG_LINKS (insn); p; p = XEXP (p, 1))
|
||||
for (p = BB_HEAD (BLOCK_FOR_INSN (insn)); p != insn; p = NEXT_INSN (p))
|
||||
{
|
||||
rtx s;
|
||||
|
||||
if (REG_NOTE_KIND (p) != 0)
|
||||
if (!INSN_P (p))
|
||||
continue;
|
||||
s = single_set (XEXP (p, 0));
|
||||
s = single_set (p);
|
||||
if (s != 0
|
||||
&& REG_P (SET_DEST (s))
|
||||
&& REGNO (SET_DEST (s)) == REGNO (reg))
|
||||
|
|
Loading…
Add table
Reference in a new issue