[llvm] [DAG] SelectionDAG::canCreateUndefOrPoison - add ISD::SCMP/UCMP handling + tests (PR #154127)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 18 08:09:11 PDT 2025


================
@@ -5748,6 +5748,8 @@ bool SelectionDAG::canCreateUndefOrPoison(SDValue Op, const APInt &DemandedElts,
   case ISD::FMA:
   case ISD::FMAD:
   case ISD::FP_EXTEND:
+  case ISD::SCMP:
+  case ISD::UCMP:
----------------
RKSimon wrote:

scmp/ucmp don't have any flags - probably better to put them undef the same section umin/umax?

https://github.com/llvm/llvm-project/pull/154127


More information about the llvm-commits mailing list