]> gitweb.factorcode.org Git - factor.git/commitdiff
add a utility word vreg>constant
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 2 Jul 2009 16:32:23 +0000 (11:32 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 2 Jul 2009 16:32:23 +0000 (11:32 -0500)
basis/compiler/cfg/value-numbering/graph/graph.factor

index 7ec9eaf7ce1a4466891ce488070d05d67889a85f..41e72019533658d459f7bd8ecf5521b992738aa0 100644 (file)
@@ -26,6 +26,8 @@ SYMBOL: vregs>vns
 
 : vn>constant ( vn -- constant ) vn>expr value>> ; inline
 
+: vreg>constant ( vreg -- constant ) vreg>vn vn>constant ; inline
+
 : init-value-graph ( -- )
     0 vn-counter set
     <bihash> exprs>vns set