intel/compiler/vec4: Switch liveness analysis to IR analysis framework
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 13 Mar 2016 23:33:39 +0000 (16:33 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 6 Mar 2020 18:20:59 +0000 (10:20 -0800)
commitacf24df2017598eb23c57599e39738e0ec059438
tree0fd756ba5ab2537541e7fb16a528bd2c958c836f
parentea44de6d8c93551be73d91045686b59a5aa42c25
intel/compiler/vec4: Switch liveness analysis to IR analysis framework

This involves wrapping vec4_live_variables in a BRW_ANALYSIS object
and hooking it up to invalidate_analysis() so it's properly
invalidated.  Seems like a lot of churn but it's fairly
straightforward.  The vec4_visitor invalidate_ and
calculate_live_intervals() methods are no longer necessary after this
change.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4012>
src/intel/compiler/brw_vec4.cpp
src/intel/compiler/brw_vec4.h
src/intel/compiler/brw_vec4_cse.cpp
src/intel/compiler/brw_vec4_dead_code_eliminate.cpp
src/intel/compiler/brw_vec4_live_variables.cpp
src/intel/compiler/brw_vec4_live_variables.h
src/intel/compiler/brw_vec4_reg_allocate.cpp
src/intel/compiler/brw_vec4_visitor.cpp