[llvm] [VPlan] Track VPValues instead of VPRecipes in calculateRegisterUsage. (PR #155301)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 13 21:16:49 PDT 2025


================
@@ -593,8 +593,11 @@ SmallVector<VPRegisterUsage, 8> llvm::calculateRegisterUsageForPlan(
     LLVM_DEBUG(dbgs() << "LV(REG): At #" << Idx << " Interval # "
                       << OpenIntervals.size() << '\n');
 
-    // Add the current recipe to the list of open intervals.
-    OpenIntervals.insert(R);
+    // Add the VPValues defined by the current recipe to the list of open
+    // intervals.
----------------
lukel97 wrote:

Nit, maybe say "the non-dead VPValues"?

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


More information about the llvm-commits mailing list