compiler.cfg.gvn.slots: make simplify-slot-addressing non-destructive

db4
Alex Vondrak 2011-06-18 16:27:29 -07:00 committed by John Benediktsson
parent 3787f64422
commit 60abd53808
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ M: array process-instruction
! FIXME there's going to be trouble with certain rewrites that
! modify the cfg / instructions destructively; namely those in
! alien.factor and slots.factor
! alien.factor
: value-numbering-iteration ( cfg -- )
clear-exprs

View File

@ -13,7 +13,7 @@ IN: compiler.cfg.gvn.slots
: simplify-slot-addressing ( insn -- insn/f )
dup simplify-slot-addressing? [
dup slot>> vreg>insn
clone dup slot>> vreg>insn
[ src1>> >>slot ]
[ src2>> over scale>> '[ _ _ shift - ] change-tag ]
bi