Mesa (master): draw: (trivial) remove a unnecessary lp_build_alloca()
Roland Scheidegger
sroland at kemper.freedesktop.org
Thu Mar 16 03:03:46 UTC 2017
Module: Mesa
Branch: master
Commit: 9d104dfd55afa4477fcc4037b992a8c99ac97431
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d104dfd55afa4477fcc4037b992a8c99ac97431
Author: Roland Scheidegger <sroland at vmware.com>
Date: Thu Mar 16 03:59:52 2017 +0100
draw: (trivial) remove a unnecessary lp_build_alloca()
pointed out by clang (stored value never read)
---
src/gallium/auxiliary/draw/draw_llvm.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index 104965b..bb08f66 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_llvm.c
@@ -1670,8 +1670,6 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant)
ind_vec = LLVMBuildInsertElement(builder, ind_vec, index, index, "");
}
- fetch_max = lp_build_alloca(gallivm, int32_type, "fetch_max");
-
have_elts = LLVMBuildICmp(builder, LLVMIntNE,
LLVMConstPointerNull(arg_types[10]), fetch_elts, "");
More information about the mesa-commit
mailing list