mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-25 01:01:04 +00:00
Avoid an extra map lookup (#4623)
Speedup: 5% less time on a real-world compilation batch (nearly 10k parallel compilations) (Durations: Before: 156.5s, After: 147.4s)
This commit is contained in:
parent
1ed847f438
commit
64328e94db
@ -260,7 +260,7 @@ void DefUseManager::EraseUseRecordsOfOperandIds(const Instruction* inst) {
|
||||
id_to_users_.erase(
|
||||
UserEntry(GetDef(use_id), const_cast<Instruction*>(inst)));
|
||||
}
|
||||
inst_to_used_ids_.erase(inst);
|
||||
inst_to_used_ids_.erase(iter);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user