[llvm] [LV]Set tailfolding styles before computing feasible max VF. (PR #91403)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 03:25:15 PDT 2024
================
@@ -5997,7 +6023,7 @@ LoopVectorizationCostModel::getConsecutiveMemOpCost(Instruction *I,
"Stride should be 1 or -1 for consecutive memory access");
const Align Alignment = getLoadStoreAlignment(I);
InstructionCost Cost = 0;
- if (Legal->isMaskRequired(I)) {
+ if (isPredicatedInst(I)) {
----------------
fhahn wrote:
Possible, but this could be done separately (+ test showing an improvement) if it is not needed to change where the styles are set?
https://github.com/llvm/llvm-project/pull/91403
More information about the llvm-commits
mailing list