[llvm] [InstCombine] Fold `X > C2 ? X + C1 : C2 + C1` to `max(X, C2) + C1` (PR #116888)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 01:36:52 PST 2024
https://github.com/nikic requested changes to this pull request.
Please directly create the final pattern with the min/max intrinsic. Creating temporary, non-canonical instructions and relying on another fold to deal with it is definitely going to bite us later.
https://github.com/llvm/llvm-project/pull/116888
More information about the llvm-commits
mailing list