[llvm] [LLVM][CodeGen][SVE] Refactor isel of 128-bit constant splats. (PR #185652)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 10 07:21:26 PDT 2026
================
@@ -16024,10 +16024,9 @@ static SDValue trySVESplat64(SDValue Op, SelectionDAG &DAG,
return SDValue();
SDLoc DL(Op);
- SDValue SplatVal = DAG.getSplatVector(MVT::nxv2i64, DL,
- DAG.getConstant(Val64, DL, MVT::i64));
- SDValue Res = convertFromScalableVector(DAG, MVT::v2i64, SplatVal);
- return DAG.getNode(AArch64ISD::NVCAST, DL, VT, Res);
+ SDValue SplatVal = DAG.getNode(AArch64ISD::DUP, DL, MVT::v2i64,
----------------
paulwalker-arm wrote:
I don't believe so. This is purely refactoring at this stage.
https://github.com/llvm/llvm-project/pull/185652
More information about the llvm-commits
mailing list