- Added fixed registers that won't be freed automatically, so that parameters
can actually be used. In the end, all temporaries should be assigned to unique virtual registers, and a register allocator can alias them to real registers, but as long as we don't do any CSE, this is good enough for now. SVN r1920 (scripting)
This commit is contained in:
parent
3cbac657d6
commit
c424c61ffc
4 changed files with 53 additions and 63 deletions
|
|
@ -50,9 +50,6 @@ public:
|
|||
// Track available registers.
|
||||
RegAvailability Registers[4];
|
||||
|
||||
// Free a register.
|
||||
void FreeReg(int regtype, int regnum) { Registers[regtype].Return(regnum, 1); }
|
||||
|
||||
private:
|
||||
struct AddrKonst
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue