Mesa (master): ac/llvm: drop v4f32empty. (v2)

Dave Airlie airlied at kemper.freedesktop.org
Thu Oct 26 06:03:08 UTC 2017


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Oct 26 15:21:44 2017 +1000

ac/llvm: drop v4f32empty. (v2)

This was unused.

v2: drop args.

Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/amd/common/ac_nir_to_llvm.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 9713c066a2..f78f4863a7 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -150,8 +150,6 @@ struct nir_to_llvm_context {
 	LLVMTypeRef v4f32;
 	LLVMTypeRef voidt;
 
-	LLVMValueRef v4f32empty;
-
 	unsigned uniform_md_kind;
 	LLVMValueRef empty_md;
 	gl_shader_stage stage;
@@ -999,8 +997,6 @@ static void create_function(struct nir_to_llvm_context *ctx,
 
 static void setup_types(struct nir_to_llvm_context *ctx)
 {
-	LLVMValueRef args[4];
-
 	ctx->voidt = LLVMVoidTypeInContext(ctx->context);
 	ctx->i1 = LLVMIntTypeInContext(ctx->context, 1);
 	ctx->i8 = LLVMIntTypeInContext(ctx->context, 8);
@@ -1017,17 +1013,9 @@ static void setup_types(struct nir_to_llvm_context *ctx)
 	ctx->v2f32 = LLVMVectorType(ctx->f32, 2);
 	ctx->v4f32 = LLVMVectorType(ctx->f32, 4);
 
-	args[0] = ctx->ac.f32_0;
-	args[1] = ctx->ac.f32_0;
-	args[2] = ctx->ac.f32_0;
-	args[3] = ctx->ac.f32_1;
-	ctx->v4f32empty = LLVMConstVector(args, 4);
-
 	ctx->uniform_md_kind =
 	    LLVMGetMDKindIDInContext(ctx->context, "amdgpu.uniform", 14);
 	ctx->empty_md = LLVMMDNodeInContext(ctx->context, NULL, 0);
-
-	args[0] = LLVMConstReal(ctx->f32, 2.5);
 }
 
 static int get_llvm_num_components(LLVMValueRef value)




More information about the mesa-commit mailing list