This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Wrap calculation of PIC address into a single instruction
On Wed, Jun 23, 2010 at 2:19 PM, Maxim Kuvyrkov <maxim@codesourcery.com> wrote:
> This patch enables optimizations, particularly GCSE, handle calculation of
> PIC addresses. ÂGCSE tracks only single instructions, so it can't handle
> two-instruction calculation of PIC address.
The reg_equal note on the second instruction should have been enough
to solve this issue. This is how it is optimized on PowerPC and some
other targets. Why is not working for arm?
Thanks,
Andrew Pinski