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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 04:54:48 PDT 2024


nikic wrote:

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

I don't think removing it entirely makes sense or is possible, because InstCombine only recognizes many patterns in select form. So it's important that we convert "small" cases to selects in the middle-end. (I don't think the same is really true for the kinds of huge pattern handled here though.)

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


More information about the llvm-commits mailing list