This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: possible gcse failure: not able to eliminate redundant loads
- From: "Sanjiv Kumar Gupta, Noida" <sanjivg at noida dot hcltech dot com>
- To: Geoff Keating <geoffk at geoffk dot org>, Richard Henderson <rth at redhat dot com>
- Cc: Daniel Berlin <dberlin at dberlin dot org>, Dale Johannesen <dalej at apple dot com>, gcc at gcc dot gnu dot org
- Date: Fri, 13 Dec 2002 10:30:41 +0530
- Subject: RE: possible gcse failure: not able to eliminate redundant loads
>> We have the code for it, but alias.c isn't helping.
>It looks like memrefs_conflict_p is supposed to be able to prove that
a[2] and a[4] don't alias, I wonder why it's not working?
It can detect different offsets in 'reg+offset' forms of addresses
but can not distinguish between two pointer regs.
In this case, the machine (sh4) doesn't support reg+offset addressing
for double-precision values.
I am working on memrefs_conflict_p to handle this.
--Sanjiv