projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a76b8e2
)
Evaluate the results in coreToStgApp
author
Ian Lynagh
<igloo@earth.li>
Tue, 19 Oct 2010 17:05:32 +0000
(17:05 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Tue, 19 Oct 2010 17:05:32 +0000
(17:05 +0000)
compiler/stgSyn/CoreToStg.lhs
patch
|
blob
|
history
diff --git
a/compiler/stgSyn/CoreToStg.lhs
b/compiler/stgSyn/CoreToStg.lhs
index
54895aa
..
b0595ab
100644
(file)
--- a/
compiler/stgSyn/CoreToStg.lhs
+++ b/
compiler/stgSyn/CoreToStg.lhs
@@
-544,13
+544,15
@@
coreToStgApp _ f args = do
TickBoxOpId {} -> pprPanic "coreToStg TickBox" $ ppr (f,args')
_other -> StgApp f args'
-
- return (
- app,
- fun_fvs `unionFVInfo` args_fvs,
- fun_escs `unionVarSet` (getFVSet args_fvs)
+ fvs = fun_fvs `unionFVInfo` args_fvs
+ vars = fun_escs `unionVarSet` (getFVSet args_fvs)
-- All the free vars of the args are disqualified
-- from being let-no-escaped.
+
+ app `seq` fvs `seq` seqVarSet vars `seq` return (
+ app,
+ fvs,
+ vars
)