[llvm] [X86] Lower `minimum`/`maximum`/`minimumnum`/`maximumnum` using bitwise operations (PR #170069)

via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 10 13:10:53 PST 2025


ActuallyaDeviloper wrote:

> Thinking about this a bit more, I think doing two min/max operations and combining them is a lot more specialized and tricky than what I've implemented here, and can be deferred to the future. The operations are asymmetric, and you have to make sure you follow LLVM's NaN semantics.

Alright, thanks for looking into it. The NaN guarantee is unfortunate.

I hope we can improve the code generation further at later time.

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


More information about the llvm-commits mailing list