[LLVMbugs] [Bug 14664] New: InstCombine missing canonicalization of sub-and into a select.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 19 21:34:15 PST 2012


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: unassignedbugs at nondot.org
        ReportedBy: nrotem at apple.com
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list