Implemented a basic optimization

This commit is contained in:
2024-07-09 11:43:33 +02:00
parent 4a7bb9500a
commit 59d6653eba
8 changed files with 48 additions and 14 deletions

View File

@ -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 {