[llvm] [VPlan] Consistently use (Part, 0) for first lane scalar values (PR #80271)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 15:52:41 PST 2024


================
@@ -9127,7 +9127,7 @@ void VPWidenPointerInductionRecipe::execute(VPTransformState &State) {
          "Unexpected type.");
 
   auto *IVR = getParent()->getPlan()->getCanonicalIV();
-  PHINode *CanonicalIV = cast<PHINode>(State.get(IVR, 0));
+  PHINode *CanonicalIV = cast<PHINode>(State.get(IVR, VPIteration(0, 0)));
----------------
ayalz wrote:

```suggestion
  PHINode *CanonicalIV = cast<PHINode>(State.get(IVR, 0, true /* scalar */));
```

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


More information about the llvm-commits mailing list