[llvm] [InstCombine] Canonicalize `max(min(X, MinC), MaxC) -> min(max(X, MaxC), MinC)` (PR #136665)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 22 09:04:53 PDT 2025
el-ev wrote:
> Looks reasonable. Is there any particular reason why we expect min(max) to be better than max(main), or is this basically chosen at random?
Mostly because it was suggested in the original issue. I'm not quite aware of the performance impact.
https://github.com/llvm/llvm-project/pull/136665
More information about the llvm-commits
mailing list