From a18c210a95794c79c6f26dbf4c66d4a85e29169d Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 27 Apr 2010 13:20:12 +0100 Subject: gallivm: Ensure all allocas are in the first block. Refactor the code to make this easier. --- src/gallium/auxiliary/gallivm/lp_bld_logic.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/gallium/auxiliary/gallivm/lp_bld_logic.c') diff --git a/src/gallium/auxiliary/gallivm/lp_bld_logic.c b/src/gallium/auxiliary/gallivm/lp_bld_logic.c index a3b6970116..d13fa1a5d0 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_logic.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_logic.c @@ -472,18 +472,6 @@ lp_build_select_aos(struct lp_build_context *bld, } } -LLVMValueRef -lp_build_alloca(struct lp_build_context *bld) -{ - const struct lp_type type = bld->type; - - if (type.length > 1) { /*vector*/ - return LLVMBuildAlloca(bld->builder, lp_build_vec_type(type), ""); - } else { /*scalar*/ - return LLVMBuildAlloca(bld->builder, lp_build_elem_type(type), ""); - } -} - /** Return (a & ~b) */ LLVMValueRef -- cgit v1.2.3