Hi Factorers,

I modified the Factor compiler to be more aware of constants. For
example, now, "5 [ foo ] dip" is transformed to "foo 5" (avoiding an
unnecessary store and reload to the retain stack) and the low-level IR
is aware of constants defined in other basic blocks (even if there is
an intervening subroutine call) using data collected in high-level IR.
This allows value numbering and the constant folding it performs to be
more effective. The results are in the branch constant-propagation in
the main Factor repository. All together, it's maybe 30 extra lines of
code for this change. Slava, do you think this should be merged into
the main branch?

Dan

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to