[project @ 2003-07-02 13:18:24 by simonpj]
authorsimonpj <unknown>
Wed, 2 Jul 2003 13:19:29 +0000 (13:19 +0000)
committersimonpj <unknown>
Wed, 2 Jul 2003 13:19:29 +0000 (13:19 +0000)
commit96fd092f6646f2cd1a71ddb10f4024a9d3da53a3
treefc578acdb837b03c870709c19bdb4303763b89e9
parent3f5e4368fd4e87e116ce34be4cf9dd0f9f96726d
[project @ 2003-07-02 13:18:24 by simonpj]
Fixes two minor bugs that I came across in the old
CgCase code generation:

1. We were generating
tmp = Sp[1]
... more uses of Sp[1]....
instead of
tmp = Sp[1]
... more uses of tmp....
in the (case v of ...prim alts...) situation

2. The cost-centre restoration wasn't right for let-no-escapes

I kept this fix separate, becuase it does change the code generated
slightly.
ghc/compiler/codeGen/CgCase.lhs
ghc/compiler/codeGen/CgExpr.lhs
ghc/compiler/codeGen/CgLetNoEscape.lhs