ir_dead_code_local: Remove redundant assignments within basic blocks.

This cleans up a bunch of junk code in some of the GLSL parser tests,
and could potentially help real-world too (particularly after copy
propagation has happened).
This commit is contained in:
Eric Anholt
2010-05-05 10:37:25 -07:00
parent dc1dbd65e1
commit 6255a1f4c6
4 changed files with 258 additions and 0 deletions
+2
View File
@@ -39,6 +39,7 @@
#include "ir_dead_code.h"
#include "ir_function_inlining.h"
#include "ir_if_simplification.h"
#include "ir_optimization.h"
#include "ir_print_visitor.h"
#include "ir_reader.h"
@@ -788,6 +789,7 @@ main(int argc, char **argv)
progress = do_function_inlining(&instructions) || progress;
progress = do_if_simplification(&instructions) || progress;
progress = do_copy_propagation(&instructions) || progress;
progress = do_dead_code_local(&instructions) || progress;
progress = do_dead_code_unlinked(&instructions) || progress;
/* Constant folding */