R600: Improve custom lowering of select_cc
authorTom Stellard <thomas.stellard@amd.com>
Fri, 8 Mar 2013 15:37:09 +0000 (15:37 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 8 Mar 2013 15:37:09 +0000 (15:37 +0000)
commit2add82de09b0c03a21afd0329062ba6fa14df3cd
tree127e9a99de774368ad8a88e9bd9aa1ac9556d592
parent492ebeabe9f50e79cad31f2b3f88fe7ee0882088
R600: Improve custom lowering of select_cc

Two changes:
1. Prefer SET* instructions when possible
2. Handle the CND*_INT case with floating-point args

Reviewed-by: Christian König <christian.koenig@amd.com>
llvm-svn: 176699
llvm/lib/Target/R600/R600ISelLowering.cpp
llvm/lib/Target/R600/R600Instructions.td
llvm/test/CodeGen/R600/fcmp-cnde-int-args.ll
llvm/test/CodeGen/R600/selectcc-opt.ll [new file with mode: 0644]