mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
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 <itoral@igalia.com>
This commit is contained in:
parent
6de293284b
commit
f22ee14644
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue