http://llvm.org/bugs/show_bug.cgi?id=14664
Bug #: 14664
Summary: InstCombine missing canonicalization of sub-and into a
select.
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Transformation Utilities
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
The following C code " ... = (b[i] > 19) * 7;" is translated to the following
IR sequence.
79 %4 = zext <4 x i1> %3 to <4 x i32>
80 %5 = sub <4 x i32> zeroinitializer, %4
81 %6 = and <4 x i32> %5, <i32 7, i32 7, i32 7, i32 7>
Value %6 should be canonicalized to a select instruction.
--
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