Mesa (master): nir: remove nir_src_get_parent_instr()

Connor Abbott cwabbott0 at kemper.freedesktop.org
Tue Jun 30 18:19:20 UTC 2015


Module: Mesa
Branch: master
Commit: f49e51ef44ac6400967731b75db871129b6c45f5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f49e51ef44ac6400967731b75db871129b6c45f5

Author: Connor Abbott <cwabbott0 at gmail.com>
Date:   Wed Jun 24 12:43:15 2015 -0700

nir: remove nir_src_get_parent_instr()

It's now unused.

Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>

---

 src/glsl/nir/nir.h |   10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 8c99845..e48db72 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -565,16 +565,6 @@ nir_src_for_reg(nir_register *reg)
    return src;
 }
 
-static inline nir_instr *
-nir_src_get_parent_instr(const nir_src *src)
-{
-   if (src->is_ssa) {
-      return src->ssa->parent_instr;
-   } else {
-      return src->reg.reg->parent_instr;
-   }
-}
-
 static inline nir_dest
 nir_dest_for_reg(nir_register *reg)
 {




More information about the mesa-commit mailing list