Bop codegen "optimization" (?)
This commit is contained in:
parent
be83ca2177
commit
884570598c
|
@ -80,7 +80,7 @@ let rec compile_lambda (lam : Ir.lambda) =
|
||||||
| Not -> NOT (sp, r1))
|
| Not -> NOT (sp, r1))
|
||||||
|
|
||||||
| Ir.Bop (op, e1, e2) ->
|
| Ir.Bop (op, e1, e2) ->
|
||||||
let r1 = emit_exp_s sp e1; sp in
|
let r1 = emit_exp sp e1 in
|
||||||
let r2 = emit_exp (suc sp) e2 in
|
let r2 = emit_exp (suc sp) e2 in
|
||||||
emit (match op with
|
emit (match op with
|
||||||
| Add -> ADD (sp, r1, r2)
|
| Add -> ADD (sp, r1, r2)
|
||||||
|
|
Loading…
Reference in New Issue