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: unassignedb...@nondot.org
Reporter: lebedev...@gmail.com
CC: craig.top...@gmail.com, llvm-bugs@lists.llvm.org,
llvm-...@redking.me.uk, pengfei.w...@intel.com,
spatel+l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs