gallivm: Fix performance regressions due to vector selects.
authorJose Fonseca <jfonseca@vmware.com>
Sat, 2 Apr 2016 14:13:38 +0000 (15:13 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Sun, 3 Apr 2016 08:51:27 +0000 (09:51 +0100)
commitb284f1f7f9afa560d6f4c0863681a7e36913955c
tree5fa8673a99b0e8c356a7058b790af6632758caa3
parent11c4e5b45c246b638b5d98822ff512d1bb09c4fd
gallivm: Fix performance regressions due to vector selects.

LLVM often can't determine the mask elements are all ones/zeros, and
there doesn't seem to be a good way to hint that.

Thanks to Roland Scheidegger for spotting and analyzing the issue.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_logic.c