================
@@ -6120,6 +6120,10 @@ void LSRInstance::RewriteForPHI(PHINode *PN, const 
LSRUse &LU,
           if (L->contains(I) && !L->contains(BB))
             InsertedNonLCSSAInsts.insert(I);
 
+        if (auto *OldIncomingInst =
----------------
boomanaiden154 wrote:

Good point. Updated so that we only add to `DeadInsts` if we call 
SplitCriticalEdge` and we're successful.

Doing it there rather than `needUpdateFixups` I think makes the most sense, 
although either should be equivalent.

https://github.com/llvm/llvm-project/pull/237532
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to