[llvm] [LV][VPlan] Add initial support for CSA vectorization (PR #121222)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 9 14:13:40 PST 2025
================
@@ -2535,6 +2535,11 @@ bool RISCVTTIImpl::isLegalMaskedExpandLoad(Type *DataTy, Align Alignment) {
return true;
}
+bool RISCVTTIImpl::enableConditionalScalarAssignmentVectorization() const {
+ return ST->hasVInstructions() &&
+ ST->getProcFamily() == RISCVSubtarget::SiFive7;
----------------
fhahn wrote:
It would be great to not limit this to a single processor family. IIUC there's nothing target-specific about the feature and the cost model should ideally accurately compute the cost, without needing a separate TTI hook?
https://github.com/llvm/llvm-project/pull/121222
More information about the llvm-commits
mailing list