https://bugs.llvm.org/show_bug.cgi?id=40800
Bug ID: 40800
Summary: [SelectionDAG] Add UNDEF handling to
SelectionDAG::FoldSetCC
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
SelectionDAG::FoldSetCC currently only folds if both sides are known constants,
but we should be able to handle some cases where one/both sides are UNDEF.
This was noticed while extending SimplifyDemandedVectorElts to support shift
ops - creating UNDEF shift amounts prevented shift by out-of-range/zero/one
tests from being constant folded in X86ISelLowering's LowerShift.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs