nir: make nir_instrs_equal() static
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 24 Sep 2015 06:10:13 +0000 (02:10 -0400)
committerConnor Abbott <cwabbott0@gmail.com>
Fri, 9 Oct 2015 14:15:15 +0000 (10:15 -0400)
This was previously tied to CSE, since it would only work for
instructions where nir_can_cse() (now instr_can_rewrite()) returned
true. Now that CSE uses the instruction set abstraction which only uses
this internally, we can make it local to nir_instr_set.c.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_instr_set.c
src/glsl/nir/nir_instr_set.h

index 7460fccba106082143c9eb3361003e5369656f82..7886003fe35b6c84aa58bbf65d483b40029ac6f3 100644 (file)
@@ -247,7 +247,7 @@ nir_alu_srcs_equal(const nir_alu_instr *alu1, const nir_alu_instr *alu2,
  * the same hash for (ignoring collisions, of course).
  */
 
-bool
+static bool
 nir_instrs_equal(const nir_instr *instr1, const nir_instr *instr2)
 {
    if (instr1->type != instr2->type)
index a7f6c9dd1eba4613b5695183a75051a866cc25dc..939e8ddbf58505105475dc67f1364e2a4adfb5d5 100644 (file)
@@ -25,8 +25,6 @@
 
 #include "nir.h"
 
-bool nir_instrs_equal(const nir_instr *instr1, const nir_instr *instr2);
-
 /**
  * This file defines functions for creating, destroying, and manipulating an
  * "instruction set," which is an abstraction for finding duplicate