[llvm-bugs] [Bug 51312] New: [DAGCombine] Failure to drop SETCC in (x&1)!=0

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 2 16:09:31 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51312

            Bug ID: 51312
           Summary: [DAGCombine] Failure to drop SETCC in (x&1)!=0
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: lebedev.ri at gmail.com
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    llvm-dev at redking.me.uk, pengfei.wang at intel.com,
                    spatel+llvm at rotateright.com

https://godbolt.org/z/aMq33KcGz

Optimized lowered selection DAG: %bb.0 'src:'
SelectionDAG has 13 nodes:
  t0: ch = EntryToken
            t2: v32i8,ch = CopyFromReg t0, Register:v32i8 %0
            t32: v32i8 = BUILD_VECTOR Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>
          t33: v32i8 = shl t2, t32
        t25: i32 = X86ISD::MOVMSK t33
      t26: i32 = parity t25
    t28: i8 = truncate t26
  t21: ch,glue = CopyToReg t0, Register:i8 $al, t28
  t22: ch = X86ISD::RET_FLAG t21, TargetConstant:i32<0>, Register:i8 $al, t21:1


Optimized lowered selection DAG: %bb.0 'tgt:'
SelectionDAG has 16 nodes:
  t0: ch = EntryToken
              t2: v32i8,ch = CopyFromReg t0, Register:v32i8 %0
              t24: v32i8 = BUILD_VECTOR Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>
            t25: v32i8 = shl t2, t24
          t20: i32 = X86ISD::MOVMSK t25
        t18: i32 = parity t20
      t10: i1 = setcc t18, Constant:i32<0>, setne:ch
    t11: i8 = any_extend t10
  t14: ch,glue = CopyToReg t0, Register:i8 $al, t11
  t15: ch = X86ISD::RET_FLAG t14, TargetConstant:i32<0>, Register:i8 $al, t14:1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210802/d4ca55ea/attachment.html>


More information about the llvm-bugs mailing list