https://bugs.llvm.org/show_bug.cgi?id=35202
Bug ID: 35202
Summary: Codegen for x86 produces an unnecessary cmp
instruction.
Product: new-bugs
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: denis.yaroshevs...@gmail.com
CC: llvm-bugs@lists.llvm.org
Clang figures out that it can omit cmp instruction, when you use equality, but
doesn't if you use a reverse comparison (which is a very common thing to do, in
STL for example).
godbolt: https://godbolt.org/g/Wy9eWR
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs