[llvm] [SimplifyCFG] Avoid increasing too many phi entries when removing empty blocks (PR #104887)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 19 22:09:59 PDT 2024
================
@@ -1047,6 +1053,34 @@ CanRedirectPredsOfEmptyBBToSucc(BasicBlock *BB, BasicBlock *Succ,
return true;
}
+// Check whether removing BB will make the phis in its Succ have too
+// many incoming entries. This function does not check whether BB is foldable
+// or not.
----------------
dtcxzyw wrote:
```suggestion
/// Check whether removing \p BB will make the phis in its \p Succ have too
/// many incoming entries. This function does not check whether \p BB is foldable
/// or not.
```
https://github.com/llvm/llvm-project/pull/104887
More information about the llvm-commits
mailing list