[llvm] [AArch64][GlobalISel] Scalarize i128 shufflevector instructions. (PR #119980)

David Green via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 15 02:44:32 PST 2024


================
@@ -5535,7 +5535,10 @@ LegalizerHelper::LegalizeResult LegalizerHelper::fewerElementsVectorShuffle(
     Ops.clear();
   }
 
-  MIRBuilder.buildConcatVectors(DstReg, {Lo, Hi});
+  if (NarrowTy.isVector())
+    MIRBuilder.buildConcatVectors(DstReg, {Lo, Hi});
+  else
+    MIRBuilder.buildBuildVector(DstReg, {Lo, Hi});
----------------
davemgreen wrote:

Thanks - I was looking for that but couldn't remember the name.

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


More information about the llvm-commits mailing list