radeon/llvm: improve ABS_i32 lowering
authorVadim Girlin <vadimgirlin@gmail.com>
Tue, 15 May 2012 14:47:53 +0000 (18:47 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Tue, 15 May 2012 14:47:53 +0000 (18:47 +0400)
commit0298238bdd65344b91731973902fb46530e74cca
treeb0358e3bd57c61891751deb6b5fbdc163fbaa710
parent76e4898ba3c67082524786a0e0c67557a8abc58b
radeon/llvm: improve ABS_i32 lowering

We can save one instruction by lowering it to:
  SUB_INT tmp, 0, src
  MAX_INT dst, src, tmp

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeon/R600LowerInstructions.cpp