intel/compiler/fs: Switch liveness analysis to IR analysis framework
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 13 Mar 2016 23:25:57 +0000 (16:25 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 6 Mar 2020 18:20:57 +0000 (10:20 -0800)
commitea44de6d8c93551be73d91045686b59a5aa42c25
treec145255d0a51688c7b55913f2a1c551475bebd2f
parentbb8cfa6837fe7967cb9b02e32bd2d1aa37631c45
intel/compiler/fs: Switch liveness analysis to IR analysis framework

This involves wrapping fs_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
fs_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>
12 files changed:
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_copy_propagation.cpp
src/intel/compiler/brw_fs_cse.cpp
src/intel/compiler/brw_fs_dead_code_eliminate.cpp
src/intel/compiler/brw_fs_live_variables.cpp
src/intel/compiler/brw_fs_live_variables.h
src/intel/compiler/brw_fs_reg_allocate.cpp
src/intel/compiler/brw_fs_register_coalesce.cpp
src/intel/compiler/brw_fs_saturate_propagation.cpp
src/intel/compiler/brw_fs_visitor.cpp
src/intel/compiler/brw_schedule_instructions.cpp