[llvm] [SimplifyCFG] Increase budget for FoldTwoEntryPHINode() if the branch is unpredictable. (PR #98495)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 21 18:18:56 PDT 2024


DianQK wrote:

> I'm wondering if it's possible to remove the `FoldTwoEntryPHINode` altogether and hand it in EarlyIfConversion.

I believe this is the right approach. The SimplifyCFG should only perform some trivial transforms from if to select in this context. 

@nikic @dtcxzyw @arsenm might provide additional ideas.

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


More information about the llvm-commits mailing list