Commit e7d96a83 by John Wehle Committed by Jeff Law

rtlanal.c (rtx_varies_p): Check operand 0 of a LO_SUM unless for_alias is set.

        * rtlanal.c (rtx_varies_p): Check operand 0 of a
        LO_SUM unless for_alias is set.

From-SVN: r40340
parent 4ce693cd
Thu Mar 8 23:29:37 2001 John Wehle (john@feith.com)
* rtlanal.c (rtx_varies_p): Check operand 0 of a
LO_SUM unless for_alias is set.
2001-03-08 Stan Shebs <shebs@apple.com> 2001-03-08 Stan Shebs <shebs@apple.com>
* objc/objc-act.c: Fix old typos in comments, add comments for * objc/objc-act.c: Fix old typos in comments, add comments for
......
...@@ -163,8 +163,10 @@ rtx_varies_p (x, for_alias) ...@@ -163,8 +163,10 @@ rtx_varies_p (x, for_alias)
case LO_SUM: case LO_SUM:
/* The operand 0 of a LO_SUM is considered constant /* The operand 0 of a LO_SUM is considered constant
(in fact is it related specifically to operand 1). */ (in fact it is related specifically to operand 1)
return rtx_varies_p (XEXP (x, 1), for_alias); during alias analysis. */
return (! for_alias && rtx_varies_p (XEXP (x, 0), for_alias))
|| rtx_varies_p (XEXP (x, 1), for_alias);
case ASM_OPERANDS: case ASM_OPERANDS:
if (MEM_VOLATILE_P (x)) if (MEM_VOLATILE_P (x))
......
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