Improved code generation
This commit is contained in:
parent
881cb0a81c
commit
a80f971e8a
3 changed files with 48 additions and 12 deletions
|
@ -27,7 +27,7 @@ func (f *Function) ExpressionToRegister(node *expression.Expression, register cp
|
|||
right := node.Children[1]
|
||||
final := register
|
||||
|
||||
if OverwritesRegister(right, register) {
|
||||
if f.UsesRegister(right, register) {
|
||||
register = f.cpu.MustFindFree(f.cpu.General)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue