[llvm] [InstCombine] Improve `foldDeadPhiWeb` compile time (PR #158057)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 11 06:45:16 PDT 2025


================
@@ -62,15 +62,15 @@ bool InstCombinerImpl::foldDeadPhiWeb(PHINode &PN) {
   Stack.push_back(&PN);
----------------
nikic wrote:

We should also add the initial phi node to the Visited set.

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


More information about the llvm-commits mailing list