Re-factor mkAtomicArgs and completeNonRecX
authorsimonpj@microsoft.com <unknown>
Wed, 16 Aug 2006 16:36:45 +0000 (16:36 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 16 Aug 2006 16:36:45 +0000 (16:36 +0000)
commitad0cc1df6f2fc711aca4ee3e9c6e58f6366bcd63
tree934da0487eddad04879cae8ec423a9db249d3530
parent0e98e80cfd63c35d4f1705d9ec5a2037ef920f16
Re-factor mkAtomicArgs and completeNonRecX

This refactoring ensures that when mkAtomicArgs adds new bindings,
it does so using completeNonRecX, which adds unfoldings etc.  More
modular, and saves passes too.

(This was important when getting rules to work right.  We want tob
fire a rule as soon as possible, taking into account all inlinings,
else a less-good rule applies.  That's what I found when doing
stream fusion anyway.)

Regardless, this is an improvement.
compiler/simplCore/Simplify.lhs