diff options
author | Eric Anholt <eric@anholt.net> | 2010-05-05 10:37:25 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-05-05 11:08:18 -0700 |
commit | 6255a1f4c6425aa311c90e9dc7fca41c34e8dc2b (patch) | |
tree | 8863a17247b1802f09113c5ac4517879311e567a /ir_optimization.h | |
parent | dc1dbd65e1099d98a05302e4ee67bc84c59a1386 (diff) |
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).
Diffstat (limited to 'ir_optimization.h')
-rw-r--r-- | ir_optimization.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ir_optimization.h b/ir_optimization.h new file mode 100644 index 0000000000..22ce75e10f --- /dev/null +++ b/ir_optimization.h @@ -0,0 +1,31 @@ +/* + * Copyright © 2010 Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + + +/** + * \file ir_dead_code.h + * + * Prototypes for optimization passes to be called by the compiler and drivers. + */ + +bool do_dead_code_local(exec_list *instructions); |