[llvm] [LV][NFC] Remove undef from phi incoming values (PR #163762)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 17 02:02:52 PDT 2025
================
@@ -39,7 +39,7 @@ define i32 @foo(i32 %n, ptr nocapture %A) {
br i1 %11, label %3, label %._crit_edge
._crit_edge: ; preds = %3, %0
- %sum.0.lcssa = phi i32 [ undef, %0 ], [ %9, %3 ]
----------------
fhahn wrote:
we could remove the phi node alltogether, by removing the unneeded check in the entry block
https://github.com/llvm/llvm-project/pull/163762
More information about the llvm-commits
mailing list