[llvm] [DAG] Scalarise trivial splat operations (PR #226257)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 01:56:39 PDT 2026


================
@@ -57,6 +57,9 @@ void DAGTypeLegalizer::ScalarizeVectorResult(SDNode *N, unsigned ResNo) {
     report_fatal_error("Do not know how to scalarize the result of this "
                        "operator!\n");
 
+  case ISD::SPLAT_VECTOR:
+    R = N->getOperand(0);
----------------
RKSimon wrote:

do we have to account for implicit integer truncation?

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


More information about the llvm-commits mailing list