diff options
| author | Simon Marlow <marlowsd@gmail.com> | 2011-10-10 14:50:41 +0100 |
|---|---|---|
| committer | Simon Marlow <marlowsd@gmail.com> | 2011-11-02 16:34:03 +0000 |
| commit | 649f3b0ca64619f3b77113ce3c94677ba70062b1 (patch) | |
| tree | da57ca8f76b5b75025ef7b37e54e3d4df2089ae4 /compiler/codeGen/CgExpr.lhs | |
| parent | d4c20a1b2c402d35b00b920c311f93b6396c6cf5 (diff) | |
| download | haskell-649f3b0ca64619f3b77113ce3c94677ba70062b1.tar.gz | |
Don't generate stg_ap thunks when profiling, it loses information (#949)
Diffstat (limited to 'compiler/codeGen/CgExpr.lhs')
| -rw-r--r-- | compiler/codeGen/CgExpr.lhs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/codeGen/CgExpr.lhs b/compiler/codeGen/CgExpr.lhs index fe08f50b42..1f16c1feee 100644 --- a/compiler/codeGen/CgExpr.lhs +++ b/compiler/codeGen/CgExpr.lhs @@ -42,6 +42,7 @@ import ListSetOps import BasicTypes import Util import Outputable +import StaticFlags \end{code} This module provides the support code for @StgToAbstractC@ to deal @@ -382,6 +383,9 @@ mkRhsClosure bndr cc bi && all isFollowableArg (map idCgRep fvs) && isUpdatable upd_flag && arity <= mAX_SPEC_AP_SIZE + && not opt_SccProfilingOn -- not when profiling: we don't want to + -- lose information about this particular + -- thunk (e.g. its type) (#949) -- Ha! an Ap thunk = cgStdRhsClosure bndr cc bi fvs [] body lf_info payload |
