[llvm] [VPlan] Run initial recipe simplification on VPlan0. (PR #176828)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 11 01:28:03 PST 2026


================
@@ -2173,6 +2185,11 @@ static bool
 sinkRecurrenceUsersAfterPrevious(VPFirstOrderRecurrencePHIRecipe *FOR,
                                  VPRecipeBase *Previous,
                                  VPDominatorTree &VPDT) {
+  // If Previous is a live-in (no defining recipe), it naturally dominates all
+  // recipes in the loop, so no sinking is needed.
+  if (!Previous)
+    return true;
+
----------------
artagnon wrote:

Hm, how is this change related?

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


More information about the llvm-commits mailing list