[llvm] [VPlan] Add exit phi operands during initial construction (NFC). (PR #136455)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 22 01:56:40 PDT 2025


================
@@ -2501,35 +2501,41 @@ void VPlanTransforms::handleUncountableEarlyExit(
     if (!ExitIRI)
       break;
 
-    PHINode &ExitPhi = ExitIRI->getIRPhi();
-    VPValue *IncomingFromEarlyExit = RecipeBuilder.getVPValueOrAddLiveIn(
-        ExitPhi.getIncomingValueForBlock(UncountableExitingBlock));
-
+    unsigned EarlyExitIdx = 0;
     if (OrigLoop->getUniqueExitBlock()) {
+      // After the transform, the first incoming value is coming from the
+      // orignial loop latch, while the second operand is from the early exit.
----------------
fhahn wrote:

Fixed thanks

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


More information about the llvm-commits mailing list