This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCSE store motion
- From: Roger Sayle <roger at eyesopen dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: <gcc at gcc dot gnu dot org>, Mark Mitchell <mark at codesourcery dot com>, "David S. Miller" <davem at redhat dot com>, Andreas Jaeger <aj at suse dot de>, Richard Henderson <rth at redhat dot com>
- Date: Wed, 15 May 2002 10:30:03 -0600 (MDT)
- Subject: Re: GCSE store motion
> In addition, never, in any RTL dumps of any code, ever, have I seen it
> remove a single store.
I'd suggest compiling the testcase in the patch below with -O3 on CVS
mainline (before store motion was disabled). The test is ill-formed
and the duplicate store should be moved, the call to abort() reveals
that the optimizer did its job. Feel free to step through with a
debuggger to convince yourself that it was GCSE's store motion at
work. For example, it doesn't abort compiling with "-O3 -fno-gcse".
Seeing is believing.
Roger
--