This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
tree-SSA and indirect references.
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc at gcc dot gnu dot org, law at redhat dot com, rth at redhat dot com
- Date: Tue, 20 Jan 2004 01:31:56 +0100
- Subject: tree-SSA and indirect references.
Hi,
I re-tested my patch to elliminate addressof and noticed that there is
still noticeable regression on Gerald's testcase (but not on GCC
components test). I modified addressof code to output variables that
were kept in registers and was looking back for the dumps. There seems
to be common pattern of:
vara=(type *)&varb;
varc=*vara;
this is common for small aggregate casts that can stay in registers
after compiling. What is our strategy to deal with this? Is the
testcase gimple at first case and would be valid to turn it into
varc=(type)varb
for aggregates? NOP expander seems to do right thing, but I am not sure
it is best idea.
Honza