aco/reindex_ssa: remove update_live_out parameter

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31362>
This commit is contained in:
Daniel Schürmann 2024-10-02 15:51:16 +02:00 committed by Marge Bot
parent bc2d166b50
commit 39fc327b8f
3 changed files with 10 additions and 11 deletions

View file

@ -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()
{

View file

@ -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);

View file

@ -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();