This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/50131] Optimize x = -1 with "or" for -O
- 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: Tue, 23 Aug 2011 14:38:58 +0000
- Subject: [Bug target/50131] Optimize x = -1 with "or" for -O
- Auto-submitted: auto-generated
- References: <bug-50131-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50131
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sergos.gnu at gmail dot com
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2011-08-23 14:38:58 UTC ---
We do have
/* X86_TUNE_MOVE_M1_VIA_OR: On pentiums, it is faster to load -1 via OR
than a MOV. */
m_PENT,
We should check how it performs on the current processors.