[llvm] [SelectionDAGBuilder] Only check VPCmp for NaNs in fp comparisons (PR #189749)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 01:50:55 PDT 2026


================
@@ -8872,10 +8870,16 @@ void SelectionDAGBuilder::visitVPCmp(const VPCmpIntrinsic &VPIntrin) {
          "Unexpected target EVL type");
   EVL = DAG.getNode(ISD::ZERO_EXTEND, DL, EVLParamVT, EVL);
 
+  if (VPIntrin.getOperand(0)->getType()->isFPOrFPVectorTy()) {
----------------
RKSimon wrote:

Yes - we either move the CC fold inside DAGCombine or we use ValueTracking instead

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


More information about the llvm-commits mailing list