This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49497] Incorrect lea peephole
- From: "hjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Jun 2011 15:30:29 +0000
- Subject: [Bug target/49497] Incorrect lea peephole
- Auto-submitted: auto-generated
- References: <bug-49497-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49497
--- Comment #3 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-06-22 15:29:48 UTC ---
Author: hjl
Date: Wed Jun 22 15:29:43 2011
New Revision: 175295
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175295
Log:
Check TARGET_PARTIAL_REG_STALL in imul to lea peepholes.
2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
PR target/49497
* config/i386/i386.md (*lea_general_2): Always allow SImode.
(*lea_general_2_zext): Likewise.
(imul to lea peepholes): Use const359_operand and check
TARGET_PARTIAL_REG_STALL.
* config/i386/predicates.md (const359_operand): New.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.md
trunk/gcc/config/i386/predicates.md