Module: Mesa
Branch: master
Commit: 7b5b27a685ee917c872a0024b73b1aec7c0aa658
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b5b27a685ee917c872a0024b73b1aec7c0aa658

Author: Samuel Pitoiset <[email protected]>
Date:   Wed Apr 10 17:16:52 2019 +0200

ac/nir: remove useles LLVMGetUndef for nir_op_pack_64_2x32_split

Trivial.

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>

---

 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;
        }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to