ac/llvm: use min+max instead of AMDGPU.clamp on LLVM 5.0
authorMarek Olšák <marek.olsak@amd.com>
Thu, 16 Feb 2017 21:52:53 +0000 (22:52 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 18 Feb 2017 01:58:43 +0000 (02:58 +0100)
commit675ef9c0c7d178438f0901e3c13c381828b3c139
tree3568b848824a2a6e0f0c7c1a685f288d46339430
parent660b55e6d9aa704022476a50e264e56ecaa3fc2d
ac/llvm: use min+max instead of AMDGPU.clamp on LLVM 5.0

It selects v_med3_f32, which has the same rate & size.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_llvm_build.c