gallium/radeon: clean up emit_declaration for temporaries
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 8 Aug 2016 17:50:52 +0000 (19:50 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 17 Aug 2016 10:11:22 +0000 (12:11 +0200)
commiteb50cbf3bdf74086f956f88b52c636c5c157643a
tree60030917f8a768515c0f4aac4e5fd7233cad2ff5
parentcb9ed66cc56aa1ac0e36594c11acc314a67cc205
gallium/radeon: clean up emit_declaration for temporaries

In the alloca'd array case, no longer create redundant and unused allocas
for the individual elements; create getelementptrs instead.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c