This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC -- update_equiv_regs and friends
- To: amylaar at cambridge dot redhat dot com
- Subject: Re: RFC -- update_equiv_regs and friends
- From: John Wehle <john at feith dot com>
- Date: Thu, 1 Mar 2001 22:31:24 -0500 (EST)
- Cc: rth at redhat dot com, law at redhat dot com, gcc at gcc dot gnu dot org
> function_invariant_p handled this just fine. Why did you switch to
> ! rtx_varies_p ?
rtx_varies_p also handles it fine but for the LO_SUM issue. Perhaps
we just should extend Bernd's hack to rtx_varies_p in the following
fashion:
case LO_SUM:
/* The operand 0 of a LO_SUM is considered constant
(in fact is it related specifically to operand 1)
during alias analysis. */
if (! for_alias && rtx_varies_p (XEXP (x, 0), for_alias))
return 1;
return rtx_varies_p (XEXP (x, 1), for_alias);
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------