# stage2 regalloc: track Inst instead of ?Inst in register mapping · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f5068107cdf54f143a150feb5d500962ba98e963)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f5068107cdf54f143a150feb5d500962ba98e963

Requested commit: f5068107cdf54f143a150feb5d500962ba98e963

Commit: f5068107cdf54f143a150feb5d500962ba98e963

Tree: 659d8cbad3f6fe798eb11fc47c7a579172fed543

Author: joachimschmidt557

Committer: Jakub Konka

## Message

```
stage2 regalloc: track Inst instead of ?Inst in register mapping

The information whether a register is allocated to an instruction is
already encoded in the free_registers "bitmap". Duplicating that
information in the registers map is unnecessary and may lead to
performance degradations.

```

## Parents

- [5f50980880181774de83dab3294ddeb0a121d6f2](https://git.cafe/gitcafe/zig/commit/5f50980880181774de83dab3294ddeb0a121d6f2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f5068107cdf54f143a150feb5d500962ba98e963?format=markdown)
