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

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 31 03:29:35 PST 2024


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

If addInductionEndValue() needs both ExitIRI and Incoming, delegate to it the retrieval of the latter from the former? It already sets operand 0, may as well get it too.

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


More information about the llvm-commits mailing list