i965: Remove useless IR self-destruct backend_shader method.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 9 Mar 2016 01:23:37 +0000 (17:23 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 14 Mar 2016 01:07:53 +0000 (18:07 -0700)
From the point it's constructed the CFG contains the only existing
copy of the program IR, and it never becomes invalid.  Calling
backend_shader::invalidate_cfg would have destroyed the program
structure irrecoverably -- We weren't calling it at all for a good
reason.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_shader.h

index dfe6afcf6d06f9c0cd39eda104632ed8576dad5e..21977a231304ef9efa29c644fdb5b3c902b858eb 100644 (file)
@@ -1046,13 +1046,6 @@ backend_shader::calculate_cfg()
    cfg = new(mem_ctx) cfg_t(&this->instructions);
 }
 
-void
-backend_shader::invalidate_cfg()
-{
-   ralloc_free(this->cfg);
-   this->cfg = NULL;
-}
-
 /**
  * Sets up the starting offsets for the groups of binding table entries
  * commong to all pipeline stages.
index 82374a46c1887ca5faeee2ae91ff2bb32b52e27a..15bed78cb7c2c7117785235318c9e69f9f1f34c4 100644 (file)
@@ -217,7 +217,6 @@ public:
    virtual void dump_instructions(const char *name);
 
    void calculate_cfg();
-   void invalidate_cfg();
 
    virtual void invalidate_live_intervals() = 0;
 };