summaryrefslogtreecommitdiff
path: root/ir_optimization.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-05-12 12:10:41 -0700
committerEric Anholt <eric@anholt.net>2010-06-01 15:15:04 -0700
commit65122e9e8038488e8c586eb609e434a90188de27 (patch)
treea0ec2cf6a753017b69961ef18caa9c9f8948fb1c /ir_optimization.h
parentf389862006dde5b0d4bcf36ba85364a1ef6d4a5d (diff)
ir_constant_variable: New pass to mark constant-assigned variables constant.
This removes a bunch of gratuitous moving around of constant values from constructors. Makes a shader ir I was looking at for structure handling almost readable.
Diffstat (limited to 'ir_optimization.h')
-rw-r--r--ir_optimization.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir_optimization.h b/ir_optimization.h
index 0660e72..432a334 100644
--- a/ir_optimization.h
+++ b/ir_optimization.h
@@ -29,6 +29,8 @@
*/
bool do_constant_folding(exec_list *instructions);
+bool do_constant_variable(exec_list *instructions);
+bool do_constant_variable_unlinked(exec_list *instructions);
bool do_copy_propagation(exec_list *instructions);
bool do_dead_code(exec_list *instructions);
bool do_dead_code_local(exec_list *instructions);