[llvm] [LV]Set tailfolding styles before computing feasible max VF. (PR #91403)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 03:08:51 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)) {
----------------
alexey-bataev wrote:
I think we'd better use this function, it has some extra checks for the predicated instructions (like dropping some uniform instructions)
https://github.com/llvm/llvm-project/pull/91403
More information about the llvm-commits
mailing list