This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/64753] Redundant cmp instruction on x86_64


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]