intel/compiler: Move all live interval analysis results into fs_live_variables
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 10 Mar 2016 01:46:16 +0000 (17:46 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 6 Mar 2020 18:20:43 +0000 (10:20 -0800)
commitba73e606f63a4633fa9d8bef69f87b2d88851416
tree6a6bcb69c3f943b558458b9933fcb57adca06ecd
parent3ceb496cdf5ef0ccc79e71c8fb856535501a9446
intel/compiler: Move all live interval analysis results into fs_live_variables

This moves the following methods that are currently defined in
fs_visitor (even though they are side products of the liveness
analysis computation) and are already implemented in
brw_fs_live_variables.cpp:

> bool virtual_grf_interferes(int a, int b) const;
> int *virtual_grf_start;
> int *virtual_grf_end;

It makes sense for them to be part of the fs_live_variables object,
because they have the same lifetime as other liveness analysis results
and because this will allow some extra validation to happen wherever
they are accessed in order to make sure that we only ever use
up-to-date liveness analysis results.

This shortens the virtual_grf prefix in order to compensate for the
slightly increased lexical overhead from the live_intervals pointer
dereference.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4012>
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_live_variables.cpp
src/intel/compiler/brw_fs_live_variables.h
src/intel/compiler/brw_fs_reg_allocate.cpp
src/intel/compiler/brw_fs_visitor.cpp
src/intel/compiler/brw_schedule_instructions.cpp