[llvm] [VPlan] Add VPIRInstruction, use for exit block live-outs. (PR #100735)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 14 12:43:07 PDT 2024


================
@@ -8637,7 +8637,7 @@ static void addCanonicalIVRecipes(VPlan &Plan, Type *IdxTy, bool HasNUW,
 // are modeled in VPlan. Some exiting values are not modeled explicitly yet and
 // won't be included. Those are un-truncated VPWidenIntOrFpInductionRecipe,
 // VPWidenPointerInductionRecipe and induction increments.
-static MapVector<PHINode *, VPValue *> collectUsersInExitBlock(
+static MapVector<VPIRInstruction *, VPValue *> collectUsersInExitBlock(
----------------
fhahn wrote:

Adjusted to use `SetVector<VPIRInstruction*>`, adding the exiting values as operand early, which should simplify the passed arguments enough hopefully

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


More information about the llvm-commits mailing list