Fix the Slow calling convention (#7192)
authorSimon Marlow <marlowsd@gmail.com>
Tue, 13 Nov 2012 11:43:09 +0000 (11:43 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 13 Nov 2012 11:43:09 +0000 (11:43 +0000)
commit4270d7e7485b124dd153399dfe3f571253dc0d1d
treeed539eab1f3019ad7910bc51af426f1b46468683
parent1c160e588706f4ff6b4e391602e38f0a2044ec13
Fix the Slow calling convention (#7192)

The Slow calling convention passes the closure in R1, but we were
ignoring this and hoping it would work, which it often did.  However,
this bug seems to have been the cause of #7192, because the
graph-colouring allocator is more sensitive to having correct liveness
information on jumps.
compiler/cmm/CmmCallConv.hs
compiler/cmm/CmmParse.y
compiler/cmm/MkGraph.hs
compiler/codeGen/StgCmmBind.hs
compiler/codeGen/StgCmmExpr.hs
compiler/codeGen/StgCmmHeap.hs
compiler/codeGen/StgCmmLayout.hs