[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:54 PDT 2025


================
@@ -301,7 +301,7 @@ for.end.loopexit:                                 ; preds = %for.body
   br label %for.end
 
 for.end:                                          ; preds = %for.end.loopexit, %entry
-  %Red.0.lcssa = phi float [ undef, %entry ], [ %add.lcssa, %for.end.loopexit ]
+  %Red.0.lcssa = phi float [ 0.0e+00, %entry ], [ %add.lcssa, %for.end.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