[llvm] [AArch64][GlobalISel] Scalarize i128 shufflevector instructions. (PR #119980)
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 14 23:02:19 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});
----------------
aemerson wrote:
I think you can just use `buildMergeLikeInstr()` for both cases.
https://github.com/llvm/llvm-project/pull/119980
More information about the llvm-commits
mailing list