[llvm] add scmp and ucmp to SelectionDAG.cpp (PR #84681)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 10 12:17:08 PDT 2024


================
@@ -6747,12 +6747,18 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
     if (VT.isVector() && VT.getVectorElementType() == MVT::i1)
       return getNode(ISD::AND, DL, VT, N1, N2);
     break;
-  case ISD::FADD:
-  case ISD::FSUB:
-  case ISD::FMUL:
-  case ISD::FDIV:
-  case ISD::FREM:
-    assert(VT.isFloatingPoint() && "This operator only applies to FP types!");
+  case ISD::UCMP:
+  case ISD::SCMP:
+    assert(VT.isInteger() && "This operator doe snot apply to FP types!");
----------------
topperc wrote:

"doe snot" -> "does not"

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


More information about the llvm-commits mailing list