compiler.cfg.alias-analysis: use clear-set.

db4
John Benediktsson 2013-03-07 21:35:00 -08:00
parent f2eedb67ec
commit 5908186301
1 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ IN: compiler.cfg.alias-analysis
! We try to eliminate redundant slot operations using some ! We try to eliminate redundant slot operations using some
! simple heuristics. ! simple heuristics.
! !
! All heap-allocated objects which are loaded from the stack, or ! All heap-allocated objects which are loaded from the stack, or
! other object slots are pessimistically assumed to belong to ! other object slots are pessimistically assumed to belong to
! the same alias class. ! the same alias class.
@ -24,10 +24,10 @@ IN: compiler.cfg.alias-analysis
! Freshly-allocated objects get their own alias class. ! Freshly-allocated objects get their own alias class.
! !
! Simple pseudo-C example showing load elimination: ! Simple pseudo-C example showing load elimination:
! !
! int *x, *y, z: inputs ! int *x, *y, z: inputs
! int a, b, c, d, e: locals ! int a, b, c, d, e: locals
! !
! Before alias analysis: ! Before alias analysis:
! !
! a = x[2] ! a = x[2]
@ -314,7 +314,7 @@ M: insn eliminate-dead-stores drop t ;
acs>vregs get clear-assoc acs>vregs get clear-assoc
live-slots get clear-assoc live-slots get clear-assoc
copies get clear-assoc copies get clear-assoc
dead-stores get table>> clear-assoc dead-stores get clear-set
next-ac heap-ac set next-ac heap-ac set
##vm-field set-new-ac ##vm-field set-new-ac