mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 06:30:11 +01:00
aco/reindex_ssa: remove update_live_out parameter
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31362>
This commit is contained in:
parent
bc2d166b50
commit
39fc327b8f
3 changed files with 10 additions and 11 deletions
|
|
@ -2133,7 +2133,7 @@ public:
|
|||
|
||||
uint32_t peekAllocationId() { return allocationID; }
|
||||
|
||||
friend void reindex_ssa(Program* program, bool update_live_out);
|
||||
friend void reindex_ssa(Program* program);
|
||||
|
||||
Block* create_and_insert_block()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -554,7 +554,7 @@ emit_parallelcopies(cssa_ctx& ctx)
|
|||
void
|
||||
lower_to_cssa(Program* program)
|
||||
{
|
||||
reindex_ssa(program, true);
|
||||
reindex_ssa(program);
|
||||
cssa_ctx ctx = {program};
|
||||
collect_parallelcopies(ctx);
|
||||
emit_parallelcopies(ctx);
|
||||
|
|
|
|||
|
|
@ -79,18 +79,17 @@ reindex_program(idx_ctx& ctx, Program* program)
|
|||
} /* end namespace */
|
||||
|
||||
void
|
||||
reindex_ssa(Program* program, bool update_live_out = false)
|
||||
reindex_ssa(Program* program)
|
||||
{
|
||||
idx_ctx ctx;
|
||||
reindex_program(ctx, program);
|
||||
if (update_live_out) {
|
||||
monotonic_buffer_resource old_memory = std::move(program->live.memory);
|
||||
for (IDSet& set : program->live.live_in) {
|
||||
IDSet new_set(program->live.memory);
|
||||
for (uint32_t id : set)
|
||||
new_set.insert(ctx.renames[id]);
|
||||
set = std::move(new_set);
|
||||
}
|
||||
|
||||
monotonic_buffer_resource old_memory = std::move(program->live.memory);
|
||||
for (IDSet& set : program->live.live_in) {
|
||||
IDSet new_set(program->live.memory);
|
||||
for (uint32_t id : set)
|
||||
new_set.insert(ctx.renames[id]);
|
||||
set = std::move(new_set);
|
||||
}
|
||||
|
||||
program->allocationID = program->temp_rc.size();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue