since we have now so many virtual registers, reduce memory consumption for the register allocator (#17985)

This commit is contained in:
Andreas Rumpf 2021-05-10 11:29:19 +02:00 • committed by GitHub
commit a9ae5fe5be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 50 deletions

View file

@ -231,8 +231,7 @@ type
PProc* = ref object
blocks*: seq[TBlock] # blocks; temp data structure
sym*: PSym
slots*: array[TRegister, tuple[inUse: bool, kind: TSlotKind]]
maxSlots*: int
regInfo*: seq[tuple[inUse: bool, kind: TSlotKind]]
VmArgs* = object
ra*, rb*, rc*: Natural