diff options
author | Jason Ekstrand <[email protected]> | 2014-11-11 16:11:34 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:19:01 -0800 |
commit | 6bdce55c44a45fc8ec8426996572c18ecf88bd64 (patch) | |
tree | 3b3b4def69a9158b59372fd6c333f93bd4beb4a5 /src/glsl/nir/nir.h | |
parent | 20a581260633cb6d0d8ca571e7f3e886298a5733 (diff) |
nir: Add a basic CSE pass
This pass is still fairly basic. It only handles ALU operations, constant
loads, and phi nodes. No texture ops or intrinsics yet.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 6a4b0fe511c..72dcb18d0ca 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1370,6 +1370,8 @@ bool nir_opt_global_to_local(nir_shader *shader); bool nir_copy_prop_impl(nir_function_impl *impl); bool nir_copy_prop(nir_shader *shader); +bool nir_opt_cse(nir_shader *shader); + bool nir_opt_dce_impl(nir_function_impl *impl); bool nir_opt_dce(nir_shader *shader); |