[Bug target/64753] Redundant cmp instruction on x86_64

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 28 13:31:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64753

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Rasmus Villemoes from comment #0)

> At the two places marked # we do a cmp and a conditional jump to .L3, where
> for good measure the same cmp is done again... there's no other path to .L3,
> so it would seem that simply omitting that extra cmp should be ok. 

IIRC postreload redundant compare elimination pass removes these redundant
compares. Unfortunately, the pass is not yet enabled for x86 targets.


More information about the Gcc-bugs mailing list