[llvm] [InstCombine] Don't convert a compare+select into a minnum/maxnum intrinsic that can't be lowered back to a compare+select (PR #177821)
Sergey Shcherbinin via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 2 05:54:35 PST 2026
SergeyShch01 wrote:
> As far as I can tell, we haven't. We're just not doing it because the compiler thinks branches are slower.
select-optimize pass which converts selects to branches doesn't work w/ maxnum. Then the compiler doesn't try branches if we substitute select by maxnum and we lose the optimization opportunity.
https://github.com/llvm/llvm-project/pull/177821
More information about the llvm-commits
mailing list