diff options
author | Dave Airlie <[email protected]> | 2017-10-26 15:30:33 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-10-26 15:59:34 +1000 |
commit | 16cfbef44cf0b196992bd06cb3521e70d1903033 (patch) | |
tree | ab10c1ab363793fbd62177c4c02698469339eca0 /src/amd/common | |
parent | 82d47b9d38f22bc26001253de7996b9b372e9d0c (diff) |
ac/llvm: drop pointless wrappers around umsb/imsb
Reviewed-by: Timothy Arceri <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 01677558d86..a736d34d124 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -1227,18 +1227,6 @@ static LLVMValueRef emit_bcsel(struct ac_llvm_context *ctx, return LLVMBuildSelect(ctx->builder, v, src1, src2, ""); } -static LLVMValueRef emit_ifind_msb(struct ac_llvm_context *ctx, - LLVMValueRef src0) -{ - return ac_build_imsb(ctx, src0, ctx->i32); -} - -static LLVMValueRef emit_ufind_msb(struct ac_llvm_context *ctx, - LLVMValueRef src0) -{ - return ac_build_umsb(ctx, src0, ctx->i32); -} - static LLVMValueRef emit_minmax_int(struct ac_llvm_context *ctx, LLVMIntPredicate pred, LLVMValueRef src0, LLVMValueRef src1) @@ -1871,11 +1859,11 @@ static void visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr) break; case nir_op_ufind_msb: src[0] = ac_to_integer(&ctx->ac, src[0]); - result = emit_ufind_msb(&ctx->ac, src[0]); + result = ac_build_umsb(&ctx->ac, src[0], ctx->ac.i32); break; case nir_op_ifind_msb: src[0] = ac_to_integer(&ctx->ac, src[0]); - result = emit_ifind_msb(&ctx->ac, src[0]); + result = ac_build_imsb(&ctx->ac, src[0], ctx->ac.i32); break; case nir_op_uadd_carry: src[0] = ac_to_integer(&ctx->ac, src[0]); |