[llvm] [RISCV][TTI] Use processShuffleMask for shuffle legalization estimate (PR #136191)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 17:27:28 PDT 2025
================
@@ -383,6 +383,61 @@ static VectorType *getVRGatherIndexType(MVT DataVT, const RISCVSubtarget &ST,
return cast<VectorType>(EVT(IndexVT).getTypeForEVT(C));
}
+/// Attempt to approximate the cost of a shuffle which will require splitting
+/// during legalization. Note that processShuffleMasks is not an exact proxy
+/// for the algorithm used in LegalizeVectorTypes, but hopefull it's a
----------------
topperc wrote:
hopefull -> hopefully
https://github.com/llvm/llvm-project/pull/136191
More information about the llvm-commits
mailing list