http://llvm.org/bugs/show_bug.cgi?id=8361
Summary: duplicated compare instruction
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Keywords: duplicate duplicated redundant repeated compare comparison cmp
The compare instruction is repeated unnecessarily in the code generated from
this:
const char *f(int x, int y)
{
return x < y ? "<" : x == y ? "=" : ">";
}
I've seen this with the ARM and x86 back ends.
Currently on r116298.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs