[llvm] [SelectionDAG] Add support for the 3-way comparison intrinsics [US]CMP (PR #91871)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon May 27 10:28:00 PDT 2024


================
@@ -164,6 +164,12 @@ void DAGTypeLegalizer::ScalarizeVectorResult(SDNode *N, unsigned ResNo) {
   case ISD::ROTR:
     R = ScalarizeVecRes_BinOp(N);
     break;
+
+  case ISD::SCMP:
+  case ISD::UCMP:
+    R = ScalarizeVecRes_CMP(N);
----------------
dtcxzyw wrote:

Missing test for scmp + scalarizevec

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


More information about the llvm-commits mailing list