Skip to content

Commit

Permalink
Fix bug in register allocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Dec 17, 2024
1 parent fc66e48 commit f70f7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Processor/Instruction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ unsigned BaseInstruction::get_max_reg(int reg_type) const
{
assert(it < start.end());
int n = *it;
res = max(res, *it++);
res = max(res, *++it + size);
it += n - 1;
}
return res;
Expand Down

0 comments on commit f70f7da

Please sign in to comment.