[LLVMbugs] [Bug 8361] New: duplicated compare instruction
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Oct 12 06:22:36 PDT 2010
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: unassignedbugs at nondot.org
ReportedBy: Edmund.Grimley-Evans at arm.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list