i965: Remove cfg-invalidating parameter from invalidate_live_intervals.
Everything has been converted to preserve the CFG. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
9e28bb863c
commit
072ea414d0
|
@ -124,7 +124,7 @@ dead_control_flow_eliminate(backend_visitor *v)
|
|||
}
|
||||
|
||||
if (progress)
|
||||
v->invalidate_live_intervals(false);
|
||||
v->invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
@ -1721,7 +1721,7 @@ fs_visitor::split_virtual_grfs()
|
|||
}
|
||||
}
|
||||
}
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1759,7 +1759,7 @@ fs_visitor::compact_virtual_grfs()
|
|||
if (remap_table[i] != -1) {
|
||||
remap_table[i] = new_index;
|
||||
virtual_grf_sizes[new_index] = virtual_grf_sizes[i];
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
++new_index;
|
||||
}
|
||||
}
|
||||
|
@ -1993,7 +1993,7 @@ fs_visitor::demote_pull_constants()
|
|||
inst->src[i].reg_offset = 0;
|
||||
}
|
||||
}
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -2154,7 +2154,7 @@ fs_visitor::opt_register_renaming()
|
|||
}
|
||||
|
||||
if (progress) {
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(delta_x); i++) {
|
||||
if (delta_x[i].file == GRF && remap[delta_x[i].reg] != -1) {
|
||||
|
@ -2328,7 +2328,7 @@ fs_visitor::compute_to_mrf()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
@ -2498,7 +2498,7 @@ fs_visitor::remove_duplicate_mrf_writes()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
@ -2715,7 +2715,7 @@ fs_visitor::insert_gen4_send_dependency_workarounds()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2773,7 +2773,7 @@ fs_visitor::lower_uniform_pull_constant_loads()
|
|||
inst->opcode = FS_OPCODE_UNIFORM_PULL_CONSTANT_LOAD_GEN7;
|
||||
inst->src[1] = payload;
|
||||
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
} else {
|
||||
/* Before register allocation, we didn't tell the scheduler about the
|
||||
* MRF we use. We know it's safe to use this MRF because nothing
|
||||
|
@ -2814,7 +2814,7 @@ fs_visitor::lower_load_payload()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
@ -3164,7 +3164,7 @@ fs_visitor::assign_binding_table_offsets()
|
|||
void
|
||||
fs_visitor::calculate_register_pressure()
|
||||
{
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
calculate_live_intervals();
|
||||
|
||||
unsigned num_instructions = instructions.length();
|
||||
|
|
|
@ -329,7 +329,7 @@ public:
|
|||
void move_uniform_array_access_to_pull_constants();
|
||||
void assign_constant_locations();
|
||||
void demote_pull_constants();
|
||||
void invalidate_live_intervals(bool invalidate_cfg = true);
|
||||
void invalidate_live_intervals();
|
||||
void calculate_live_intervals();
|
||||
void calculate_register_pressure();
|
||||
bool opt_algebraic();
|
||||
|
|
|
@ -649,7 +649,7 @@ fs_visitor::opt_copy_propagate()
|
|||
ralloc_free(copy_prop_ctx);
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
@ -321,7 +321,7 @@ fs_visitor::opt_cse()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ fs_visitor::dead_code_eliminate()
|
|||
}
|
||||
}
|
||||
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
||||
return progress;
|
||||
|
|
|
@ -290,13 +290,10 @@ fs_live_variables::~fs_live_variables()
|
|||
}
|
||||
|
||||
void
|
||||
fs_visitor::invalidate_live_intervals(bool __invalidate_cfg)
|
||||
fs_visitor::invalidate_live_intervals()
|
||||
{
|
||||
ralloc_free(live_intervals);
|
||||
live_intervals = NULL;
|
||||
|
||||
if (__invalidate_cfg)
|
||||
invalidate_cfg();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -110,7 +110,7 @@ fs_visitor::opt_peephole_predicated_break()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
@ -728,5 +728,5 @@ fs_visitor::spill_reg(int spill_reg)
|
|||
}
|
||||
}
|
||||
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
|
|
@ -280,7 +280,7 @@ fs_visitor::register_coalesce()
|
|||
}
|
||||
}
|
||||
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
||||
return progress;
|
||||
|
|
|
@ -100,7 +100,7 @@ fs_visitor::opt_saturate_propagation()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
@ -231,7 +231,7 @@ fs_visitor::opt_peephole_sel()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
@ -1511,7 +1511,7 @@ fs_visitor::schedule_instructions(instruction_scheduler_mode mode)
|
|||
dispatch_width, sched.time);
|
||||
}
|
||||
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1524,5 +1524,5 @@ vec4_visitor::opt_schedule_instructions()
|
|||
fprintf(stderr, "vec4 estimated execution time: %d cycles\n", sched.time);
|
||||
}
|
||||
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
|
|
@ -182,7 +182,7 @@ public:
|
|||
|
||||
void assign_common_binding_table_offsets(uint32_t next_binding_table_offset);
|
||||
|
||||
virtual void invalidate_live_intervals(bool invalidate_cfg = true) = 0;
|
||||
virtual void invalidate_live_intervals() = 0;
|
||||
};
|
||||
|
||||
uint32_t brw_texture_offset(struct gl_context *ctx, ir_constant *offset);
|
||||
|
|
|
@ -406,7 +406,7 @@ vec4_visitor::opt_reduce_swizzle()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
@ -563,7 +563,7 @@ vec4_visitor::dead_code_eliminate()
|
|||
}
|
||||
}
|
||||
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
||||
return progress;
|
||||
|
@ -742,7 +742,7 @@ vec4_visitor::opt_algebraic()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
@ -1195,7 +1195,7 @@ vec4_visitor::opt_register_coalesce()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
@ -1274,7 +1274,7 @@ vec4_visitor::split_virtual_grfs()
|
|||
}
|
||||
}
|
||||
}
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -383,7 +383,7 @@ public:
|
|||
void split_uniform_registers();
|
||||
void pack_uniform_registers();
|
||||
void calculate_live_intervals();
|
||||
void invalidate_live_intervals(bool invalidate_cfg = true);
|
||||
void invalidate_live_intervals();
|
||||
void split_virtual_grfs();
|
||||
bool opt_reduce_swizzle();
|
||||
bool dead_code_eliminate();
|
||||
|
|
|
@ -438,7 +438,7 @@ vec4_visitor::opt_copy_propagation()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
@ -260,7 +260,7 @@ vec4_visitor::opt_cse()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
@ -268,12 +268,9 @@ vec4_visitor::calculate_live_intervals()
|
|||
}
|
||||
|
||||
void
|
||||
vec4_visitor::invalidate_live_intervals(bool __invalidate_cfg)
|
||||
vec4_visitor::invalidate_live_intervals()
|
||||
{
|
||||
live_intervals_valid = false;
|
||||
|
||||
if (__invalidate_cfg)
|
||||
invalidate_cfg();
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -354,7 +354,7 @@ vec4_visitor::spill_reg(int spill_reg_nr)
|
|||
}
|
||||
}
|
||||
|
||||
invalidate_live_intervals(false);
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
||||
} /* namespace brw */
|
||||
|
|
Loading…
Reference in New Issue