intel/compiler: Introduce backend_shader method to propagate IR changes to analysis passes
The invalidate_analysis() method knows what analysis passes there are in the back-end and calls their invalidate() method to report changes in the IR. For the moment it just calls invalidate_live_intervals() (which will eventually be fully replaced by this function) if anything changed. This makes all optimization passes invalidate DEPENDENCY_EVERYTHING, which is clearly far from ideal -- The dependency classes passed to invalidate_analysis() will be refined in a future commit. 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
03eb46f4a7
commit
d966a6b4c4
@@ -1839,7 +1839,7 @@ fs_visitor::schedule_instructions(instruction_scheduler_mode mode)
|
||||
cfg->num_blocks, mode);
|
||||
sched.run(cfg);
|
||||
|
||||
invalidate_live_intervals();
|
||||
invalidate_analysis(DEPENDENCY_EVERYTHING);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -1848,5 +1848,5 @@ vec4_visitor::opt_schedule_instructions()
|
||||
vec4_instruction_scheduler sched(this, prog_data->total_grf);
|
||||
sched.run(cfg);
|
||||
|
||||
invalidate_live_intervals();
|
||||
invalidate_analysis(DEPENDENCY_EVERYTHING);
|
||||
}
|
||||
|
Reference in New Issue
Block a user