This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49781] [x32] Unnecessary lea in x32 mode
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 7 Aug 2011 20:23:47 +0000
- Subject: [Bug target/49781] [x32] Unnecessary lea in x32 mode
- Auto-submitted: auto-generated
- References: <bug-49781-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49781
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |UNCONFIRMED
Ever Confirmed|1 |0
--- Comment #32 from H.J. Lu <hjl.tools at gmail dot com> 2011-08-07 20:23:13 UTC ---
(In reply to comment #31)
> (In reply to comment #29)
> > Created attachment 24938 [details]
> > WIP patch that exploits addr32.
> >
> > New version of patch for testing. Survives bootstrap + regtest on
> > x86_64-pc-linux-gnu.
>
> Oh, I forgot to add MEM_P ..., so please change the condition to:
>
> if (TARGET_64BIT
> && MEM_P (x)
>
> && GET_MODE_SIZE (mode) > UNITS_PER_WORD
> && rclass == GENERAL_REGS
> && !offsettable_memref_p (x))
>
> Patch still works OK.
I am testing it now.