diff options
author | Jason Ekstrand <[email protected]> | 2017-01-18 09:21:07 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-01-19 21:40:30 -0800 |
commit | f22ee14644143b5edeed7f345b93fb361c16c71b (patch) | |
tree | 12f98b3c6cca09702970305aeb37a64422372c88 /src | |
parent | 6de293284bff2d2f8e5b08ea21fc1e2ed68a181f (diff) |
nir/algebraic: Only include nir_search_helpers once
We were including it once per value, so probably around 10k times.
Let's not cause the compiler any more work than we have to.
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/nir/nir_algebraic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_algebraic.py b/src/compiler/nir/nir_algebraic.py index b0fa9e7092f..8c7fbc81947 100644 --- a/src/compiler/nir/nir_algebraic.py +++ b/src/compiler/nir/nir_algebraic.py @@ -76,7 +76,6 @@ class Value(object): return Constant(val, name_base) __template = mako.template.Template(""" -#include "compiler/nir/nir_search_helpers.h" static const ${val.c_type} ${val.name} = { { ${val.type_enum}, ${val.bit_size} }, % if isinstance(val, Constant): @@ -500,6 +499,7 @@ class SearchAndReplace(object): _algebraic_pass_template = mako.template.Template(""" #include "nir.h" #include "nir_search.h" +#include "nir_search_helpers.h" #ifndef NIR_OPT_ALGEBRAIC_STRUCT_DEFS #define NIR_OPT_ALGEBRAIC_STRUCT_DEFS |