glsl_to_tgsi: remove unnecessary dead code elimination pass
authorBryan Cain <bryancain3@gmail.com>
Tue, 6 May 2014 03:23:38 +0000 (22:23 -0500)
committerBryan Cain <bryancain3@gmail.com>
Tue, 13 May 2014 19:57:55 +0000 (14:57 -0500)
commit4e974a9cf323d774bfcbdd44d5cb1f7bf6391964
tree5c0893e14858e1a79aa405e9a3e474a088067db8
parent1646f4d0fb0efec04dce62b6dd4d974206acc8ac
glsl_to_tgsi: remove unnecessary dead code elimination pass

With the more advanced dead code elimination pass already being run,
eliminate_dead_code was making no difference in instruction count, and had
an undesirable O(n^2) runtime. So remove it and rename
eliminate_dead_code_advanced to eliminate_dead_code.

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp