r600g: optimize away CF_INST_POP
authorChristian König <deathsimple@vodafone.de>
Mon, 13 Dec 2010 23:43:53 +0000 (00:43 +0100)
committerChristian König <deathsimple@vodafone.de>
Mon, 13 Dec 2010 23:43:53 +0000 (00:43 +0100)
commitd92e97d8848dd96fd8e5b93e62edbf7b5f509efc
tree64254af06fa137c6b55da404d4a3dada6fca4bcf
parente13fecbbd69ab7e119fcf1dafcb4fb517de5c20d
r600g: optimize away CF_INST_POP

If last instruction is an CF_INST_ALU we don't need to emit an
additional CF_INST_POP for stack clean up after an IF ELSE ENDIF.
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_shader.c