aco/spill: Replace map[] with map::insert
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11925>
This commit is contained in:
@@ -362,7 +362,7 @@ local_next_uses(spill_ctx& ctx, Block* block)
|
||||
std::map<Temp, uint32_t> next_uses;
|
||||
for (std::pair<const Temp, std::pair<uint32_t, uint32_t>>& pair :
|
||||
ctx.next_use_distances_end[block->index])
|
||||
next_uses[pair.first] = pair.second.second + block->instructions.size();
|
||||
next_uses.insert({pair.first, pair.second.second + block->instructions.size()});
|
||||
|
||||
for (int idx = block->instructions.size() - 1; idx >= 0; idx--) {
|
||||
aco_ptr<Instruction>& instr = block->instructions[idx];
|
||||
|
||||
Reference in New Issue
Block a user