From 7b5b27a685ee917c872a0024b73b1aec7c0aa658 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 10 Apr 2019 17:16:52 +0200 Subject: [PATCH] ac/nir: remove useles LLVMGetUndef for nir_op_pack_64_2x32_split MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Trivial. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/amd/common/ac_nir_to_llvm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 90f7c66434d..de52f008dbf 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -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; } -- 2.30.2