gallivm: (trivial) simplify lp_build_cos/lp_build_sin a tiny bit
authorRoland Scheidegger <sroland@vmware.com>
Wed, 17 Jul 2013 16:13:41 +0000 (18:13 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 17 Jul 2013 16:16:34 +0000 (18:16 +0200)
commit7fd30a8621ccb10b1b6df54ca2afb73bb8e959e8
tree91a27ec799ab08354a795373af3e9aab40cea7ac
parentf0f9fb59c326a7b911bed8491edb0f5fd5966360
gallivm: (trivial) simplify lp_build_cos/lp_build_sin a tiny bit

Use "or" instead of "add" (this is a classic select sequence, which at
least newer llvm versions can actually recognize (3.2+?), and the "add"
might prevent that - and we really don't want an add instead of an or with
avx if it isn't recognized (even without avx logic ops might be cheaper)).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_arit.c