[llvm] [RISCV][TTI] Enable masked interleave vectorization (PR #150074)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 23 01:11:32 PDT 2025
================
@@ -398,6 +398,10 @@ class RISCVTTIImpl final : public BasicTTIImplBase<RISCVTTIImpl> {
bool enableInterleavedAccessVectorization() const override { return true; }
+ bool enableMaskedInterleavedAccessVectorization() const override {
+ return ST->hasVInstructions();
----------------
Mel-Chen wrote:
This comment isn't opposing the use of hasVInstructions() here — in fact, I think it's a good thing.
I was just curious during my own implementation: why does enableInterleavedAccessVectorization return true directly without checking hasVInstructions()?
https://github.com/llvm/llvm-project/pull/150074
More information about the llvm-commits
mailing list