diff options
author | Matt Turner <mattst88@gmail.com> | 2014-06-28 20:02:51 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-07-01 08:55:52 -0700 |
commit | 2e90d1fb62a6ef53c15eff76e242c510145178a9 (patch) | |
tree | 57ea18f128ff1fa1a4c76a90ad06376d509b6a6b /src/mesa/drivers/dri/i965/brw_fs_live_variables.h | |
parent | ec1b2d6aa075c678f0eb0405be64253450f995a1 (diff) | |
download | external_mesa3d-2e90d1fb62a6ef53c15eff76e242c510145178a9.zip external_mesa3d-2e90d1fb62a6ef53c15eff76e242c510145178a9.tar.gz external_mesa3d-2e90d1fb62a6ef53c15eff76e242c510145178a9.tar.bz2 |
i965/fs: Pass cfg to calculate_live_intervals().
We've often created the CFG immediately before, so use it when
available.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_live_variables.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_live_variables.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_live_variables.h b/src/mesa/drivers/dri/i965/brw_fs_live_variables.h index 5a7dd27..13c3eb4 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_live_variables.h +++ b/src/mesa/drivers/dri/i965/brw_fs_live_variables.h @@ -57,7 +57,7 @@ class fs_live_variables { public: DECLARE_RALLOC_CXX_OPERATORS(fs_live_variables) - fs_live_variables(fs_visitor *v, cfg_t *cfg); + fs_live_variables(fs_visitor *v, const cfg_t *cfg); ~fs_live_variables(); bool vars_interfere(int a, int b); @@ -97,7 +97,7 @@ protected: void compute_start_end(); fs_visitor *v; - cfg_t *cfg; + const cfg_t *cfg; void *mem_ctx; }; |