Use a slice for InstMap instead of std.HashMap

The `sema.inst_map` datastructure is very often accessed. All
instructions that reference the result of other instructions does a
lookup into this field. Because of this, a significant amount of time,
is spent in `std.HashMap.get`.

This commit replaces the `HashMap` with a simpler data structure that
uses the zir indexes to index into a slice for the result. See the data
structure doc comment for more info.
6097165241Jimmi Holst Christensen committed on 11/27/2022, 7:10:00 AM· committed by Andrew Kelleyparent0196010
2 files changedLine totals unavailable