ac/nir: remove useles LLVMGetUndef for nir_op_pack_64_2x32_split
Trivial. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
fd4041987b
commit
7b5b27a685
|
@ -1013,8 +1013,7 @@ static void visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr)
|
|||
}
|
||||
|
||||
case nir_op_pack_64_2x32_split: {
|
||||
LLVMValueRef tmp = LLVMGetUndef(ctx->ac.v2i32);
|
||||
tmp = ac_build_gather_values(&ctx->ac, src, 2);
|
||||
LLVMValueRef tmp = ac_build_gather_values(&ctx->ac, src, 2);
|
||||
result = LLVMBuildBitCast(ctx->ac.builder, tmp, ctx->ac.i64, "");
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue