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

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 23 10:47:31 PDT 2025


================
@@ -9368,11 +9368,10 @@ static void addScalarResumePhis(VPRecipeBuilder &Builder, VPlan &Plan,
   }
 }
 
-// Collect VPIRInstructions for phis in the exit blocks that are modeled
-// in VPlan and add the exiting VPValue as operand.
+// Collect VPIRInstructions for phis in the exit block from the latch only.
 static SetVector<VPIRInstruction *>
-collectUsersInExitBlocks(Loop *OrigLoop, VPRecipeBuilder &Builder,
-                         VPlan &Plan) {
+collectUsersInLatchExitBlock(Loop *OrigLoop, VPRecipeBuilder &Builder,
+                             VPlan &Plan) {
----------------
ayalz wrote:

Are `OrigLoop` and `Builder` still needed?

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


More information about the llvm-commits mailing list