[llvm] [LV, VP]VP intrinsics support for the Loop Vectorizer + adding new tail-folding mode using EVL. (PR #76172)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 12:48:27 PST 2024


================
@@ -9529,7 +9647,21 @@ void VPWidenMemoryInstructionRecipe::execute(VPTransformState &State) {
   State.setDebugLocFrom(LI->getDebugLoc());
   for (unsigned Part = 0; Part < State.UF; ++Part) {
     Value *NewLI;
-    if (CreateGatherScatter) {
+    if (State.EVL) {
+      assert(State.UF == 1 &&
+             "Expected only UF==1 for predicated vectorization.");
+      Value *EVLPart = State.get(State.EVL, Part);
----------------
fhahn wrote:

Drop the part from EVLPart here as well? (going back to https://reviews.llvm.org/D99750?id=558054#inline-1551817))

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


More information about the llvm-commits mailing list