[llvm] [InstCombine] Treat umax as select(icmp eq x, 0), 1, x) in binop select fold. (PR #65978)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 15 06:24:09 PDT 2023


https://github.com/nikic commented:

Why is this specific to umin(1)? Doesn't the same work for, say, umin(2)? https://alive2.llvm.org/ce/z/gQqtpt

Or really any min/max intrinsic decomposed into select form.

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


More information about the llvm-commits mailing list