# stage2 regalloc: fix tryAllocRegs for specific situations · gitcafe/zig

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

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

Visibility: public

Requested revision: 13321c8070b52afb24f3c1b57eecbb2aa77fc4ec

Requested commit: 13321c8070b52afb24f3c1b57eecbb2aa77fc4ec

Commit: 13321c8070b52afb24f3c1b57eecbb2aa77fc4ec

Tree: 8e1993c92445c3ecb25b44d3a94d469c56157126

Author: joachimschmidt557

Committer: Jakub Konka

## Message

```
stage2 regalloc: fix tryAllocRegs for specific situations

Previously, tryAllocRegs did not take frozen registers into account
when checking if enough registers are available.

```

## Parents

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

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