Files
clang-p2996/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
Sanjay Patel f48f178717 [InstCombine] canonicalize cmp+select as smin/smax
(V == SMIN) ? SMIN+1 : V --> smax(V, SMIN+1)
(V == SMAX) ? SMAX-1 : V --> smin(V, SMAX-1)

https://alive2.llvm.org/ce/z/d5bqjy

Follow-up for the unsigned variants added with:
86b4d8645f

issue #60374
2023-02-12 07:54:43 -05:00

137 KiB