ac/nir: remove emission of nir_op_fpow
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 5 Feb 2018 14:51:37 +0000 (15:51 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 22 Feb 2018 19:44:46 +0000 (20:44 +0100)
fpow is now lowered at NIR level.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c

index 99a3471305b6b9815119b415b007050289214431..cccc687157c8af19c9c21aa54845adc2f850786b 100644 (file)
@@ -1883,10 +1883,6 @@ static void visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr)
                result = ac_build_fdiv(&ctx->ac, instr->dest.dest.ssa.bit_size == 32 ? ctx->ac.f32_1 : ctx->ac.f64_1,
                                       result);
                break;
-       case nir_op_fpow:
-               result = emit_intrin_2f_param(&ctx->ac, "llvm.pow",
-                                             ac_to_float_type(&ctx->ac, def_type), src[0], src[1]);
-               break;
        case nir_op_fmax:
                result = emit_intrin_2f_param(&ctx->ac, "llvm.maxnum",
                                              ac_to_float_type(&ctx->ac, def_type), src[0], src[1]);