[Bug c/52802] Equality rewrites pessimizes code

mikpe at it dot uu.se gcc-bugzilla@gcc.gnu.org
Mon Apr 2 09:43:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52802

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2012-04-02 09:43:03 UTC ---
On x86, mov and jcc don't clobber the flags, so the first cmpl should compare
with 8 not 7, the jbe should be adjusted to jb, and then the second cmpl is
redundant as the flags from the first cmpl are still available.



More information about the Gcc-bugs mailing list