[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 02:55:36 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:

Are those changes still needed for the latest version?

https://github.com/llvm/llvm-project/pull/91403


More information about the llvm-commits mailing list