gallivm: Use lp_build_alloca instead of LLVMBuildAlloca on the loop limiter.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 25 Apr 2012 15:30:06 +0000 (16:30 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 25 Apr 2012 17:09:38 +0000 (18:09 +0100)
commit914244e59d6ad08ec2dd815129c6e75b32843d80
tree7601b4de027d1d298488453a8688c8e1e03774aa
parent9f4509343369e8adb43268329c845148ea32a114
gallivm: Use lp_build_alloca instead of LLVMBuildAlloca on the loop limiter.

To ensure that the alloca is at the top of the function body, otherwise
LLVM will not eliminate them, causing stack misalignment on 32bits.

Reviewed-by: James Benton <jbenton@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c