[llvm] [SVE][InstCombine] Fold ld1d and splice into ld1ro (PR #69565)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 2 21:44:17 PDT 2023
================
@@ -1258,6 +1258,36 @@ instCombineSVEST1(InstCombiner &IC, IntrinsicInst &II, const DataLayout &DL) {
return IC.eraseInstFromFunction(II);
}
+static std::optional<Instruction *>
+instCombineSVESplice(InstCombiner &IC, IntrinsicInst &II, const DataLayout &DL,
+ const AArch64Subtarget *ST) {
+ Value *Pred = II.getOperand(0);
+ Value *VecOp0 = II.getOperand(1);
+ Value *VecOp1 = II.getOperand(2);
+ Value *PtrOp;
+ unsigned MinSVESize = ST->getMinSVEVectorSizeInBits();
+ unsigned MaxSVESize = ST->getMaxSVEVectorSizeInBits();
----------------
vfdff wrote:
Thanks @paulwalker-arm , update with API `getVScaleRange` to check function attribute.
https://github.com/llvm/llvm-project/pull/69565
More information about the llvm-commits
mailing list