diff options
author | José Fonseca <[email protected]> | 2010-10-10 19:05:05 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-10-10 19:05:05 +0100 |
commit | 693667bf88abcb60332a6f94c8f06a9fe7d62613 (patch) | |
tree | 7aa32039aa5d12eb6d2b118adfaf43c5b2f93a08 /src/gallium/auxiliary/gallivm/lp_bld_flow.h | |
parent | 48003f3567d2732cfab08186934c4261c0447c9c (diff) |
gallivm: Use variables instead of Phis in loops.
With this commit all explicit Phi emission is now gone.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_flow.h')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_flow.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_flow.h b/src/gallium/auxiliary/gallivm/lp_bld_flow.h index e21d9de280f..e729ee6eaac 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_flow.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_flow.h @@ -108,6 +108,7 @@ lp_build_mask_end(struct lp_build_mask_context *mask); struct lp_build_loop_state { LLVMBasicBlockRef block; + LLVMValueRef counter_var; LLVMValueRef counter; }; @@ -128,7 +129,7 @@ void lp_build_loop_end_cond(LLVMBuilderRef builder, LLVMValueRef end, LLVMValueRef step, - int cond, /* LLVM condition */ + LLVMIntPredicate cond, struct lp_build_loop_state *state); |