commit | 47b6ba6db7c8b8dd36ac54dbd19ae7b4a5b77424 | [log] [tgz] |
---|---|---|
author | Nicolas Capens <capn@google.com> | Mon Feb 13 11:27:34 2017 -0500 |
committer | Jim Stichnoth <stichnot@chromium.org> | Mon Feb 13 16:57:59 2017 +0000 |
tree | 7330b1065d6a8f252450b2902bc9d2e8b73ccc96 | |
parent | eb568f5569b3a25346eb601898baf6fe774f6d4a [diff] |
Optimize floating-point minimum/maximum operations. Combine a floating-point compare + select into min/max operations on x86 using SSE2 instructions, where equivalent. Only handles the most common cases for now (but for both scalars and vectors): x > y ? x : y -> max x < y ? x : y -> min BUG=swiftshader:19 Change-Id: Ic87bfa90cefd8014af5624d85a2ecef1c891e328 Reviewed-on: https://chromium-review.googlesource.com/439814 Reviewed-by: Jim Stichnoth <stichnot@chromium.org>