[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


================
@@ -320,13 +320,13 @@ for.cond.cleanup.loopexit:
   br label %for.cond.cleanup
 
 for.cond.cleanup:
-  %minmax.0.lcssa = phi i32 [ undef, %entry ], [ %minmax.0.cond.lcssa, %for.cond.cleanup.loopexit ]
----------------
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