[llvm] [VPlan] Update final exit value via VPlan. (PR #112147)

Shih-Po Hung via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 31 01:32:19 PST 2024


================
@@ -9022,11 +8963,16 @@ addUsersInExitBlocks(VPlan &Plan,
       if (ExitIRI->getParent()->getSinglePredecessor() != MiddleVPBB)
         return false;
 
+      VPValue *Incoming = ExitIRI->getOperand(0);
+      if (addInductionEndValue(Plan, ExitIRI, Incoming, Inductions, EndValues,
+                               TypeInfo))
+        continue;
----------------
arcbbb wrote:

Would using Idx instead of 0 be necessary for supporting two exiting blocks?

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


More information about the llvm-commits mailing list