ac/llvm: add better code for isign
authorMarek Olšák <marek.olsak@amd.com>
Thu, 3 Sep 2020 09:51:17 +0000 (05:51 -0400)
committerVivek Pandya <vivekvpandya@gmail.com>
Mon, 7 Sep 2020 15:55:16 +0000 (21:25 +0530)
commit70375a9afb0800722509d4a09c94b8b959aeb3fc
tree1d780f5ab3b19af5f35f8d20ede1fc3b603c8a7d
parentbdf8ab8c8c943b2e31803561379e3a204a7bb2ba
ac/llvm: add better code for isign

There are 2 improvements:
- select v_med3_i32
- support vectors

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6284>
src/amd/llvm/ac_llvm_build.c
src/amd/llvm/ac_llvm_build.h
src/amd/llvm/ac_nir_to_llvm.c