Implemented a basic optimization
This commit is contained in:
@ -29,12 +29,6 @@ func (f *Function) CompileCall(root *expression.Expression) error {
|
||||
registers = f.cpu.Syscall[:len(parameters)]
|
||||
}
|
||||
|
||||
for _, register := range f.cpu.Input {
|
||||
if f.cpu.IsUsed(register) {
|
||||
f.SaveRegister(register)
|
||||
}
|
||||
}
|
||||
|
||||
err := f.ExpressionsToRegisters(parameters, registers)
|
||||
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user