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>
This commit is contained in:

committed by
Matt Turner

parent
3ceb496cdf
commit
ba73e606f6
@@ -151,7 +151,6 @@ public:
|
||||
bool remove_extra_rounding_modes();
|
||||
|
||||
bool opt_sampler_eot();
|
||||
bool virtual_grf_interferes(int a, int b) const;
|
||||
void schedule_instructions(instruction_scheduler_mode mode);
|
||||
void insert_gen4_send_dependency_workarounds();
|
||||
void insert_gen4_pre_send_dependency_workarounds(bblock_t *block,
|
||||
@@ -320,8 +319,8 @@ public:
|
||||
|
||||
const struct brw_vue_map *input_vue_map;
|
||||
|
||||
int *virtual_grf_start;
|
||||
int *virtual_grf_end;
|
||||
int *param_size;
|
||||
|
||||
brw::fs_live_variables *live_intervals;
|
||||
|
||||
int *regs_live_at_ip;
|
||||
|
Reference in New Issue
Block a user