llvmpipe: switch to using dynamic stack allocation instead of registers
authorZack Rusin <zackr@vmware.com>
Tue, 9 Feb 2010 02:50:33 +0000 (21:50 -0500)
committerZack Rusin <zackr@vmware.com>
Tue, 9 Feb 2010 02:50:33 +0000 (21:50 -0500)
commit85c7ec70ad41c8ada75a4cbace83d16815d3e2c5
tree7154254e4d6c26e27e410524f814a52329ff46d3
parent257267ee9817d67e6963e81766a121c367478f65
llvmpipe: switch to using dynamic stack allocation instead of registers

with mutable vars we don't need to follow the phi nodes. meaning that
control flow becomes trivial as we don't have scan the rest of the tgsi
to figure out the variable usage anymore. futhermore the memory2register
pass promotes alloca/store/load to registers while inserting the right phi
nodes. so we get simplicity and performance.
src/gallium/auxiliary/gallivm/lp_bld_logic.c
src/gallium/auxiliary/gallivm/lp_bld_logic.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
src/gallium/drivers/llvmpipe/lp_state_fs.c