Beef up cmmMiniInline a tiny bit
authorSimon Marlow <marlowsd@gmail.com>
Tue, 16 Feb 2010 15:05:06 +0000 (15:05 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 16 Feb 2010 15:05:06 +0000 (15:05 +0000)
commit6e9501c0e3c3bb807981c0378c969d0667a7ce0b
treec1e9880020163d25e18ed0316ae9a0bf63a3aecc
parentcd81cd88f2e6f7972221bf2f6d956a0a63ac2e84
Beef up cmmMiniInline a tiny bit
Allow a temporary assignment to be pushed past an assignment to a
global if the global is not mentioned in the rhs of the assignment we
are inlining.

This fixes up some bad code.  We should make sure we're doing
something equivalent in the new backend in due course.
compiler/cmm/CmmExpr.hs
compiler/cmm/CmmOpt.hs
compiler/codeGen/CgUtils.hs
compiler/codeGen/StgCmmUtils.hs