[commit: ghc] wip/T14626: WIP: focus on SDC for now (8a555d0)
git at git.haskell.org
git at git.haskell.org
Sun Jan 28 16:06:54 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T14626
Link : http://ghc.haskell.org/trac/ghc/changeset/8a555d0d1de2fb27d4dbd290cbba1c9ef70d9db5/ghc
>---------------------------------------------------------------
commit 8a555d0d1de2fb27d4dbd290cbba1c9ef70d9db5
Author: Gabor Greif <ggreif at gmail.com>
Date: Mon Jan 15 18:12:12 2018 +0100
WIP: focus on SDC for now
>---------------------------------------------------------------
8a555d0d1de2fb27d4dbd290cbba1c9ef70d9db5
compiler/codeGen/StgCmmCon.hs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/compiler/codeGen/StgCmmCon.hs b/compiler/codeGen/StgCmmCon.hs
index bc3d69c..6415370 100644
--- a/compiler/codeGen/StgCmmCon.hs
+++ b/compiler/codeGen/StgCmmCon.hs
@@ -32,6 +32,8 @@ import StgCmmProf ( curCCS )
import TyCon -- NOT NEEDED
import Type (isAlgType)
+import Name (getName, nameOccName)
+import OccName (occNameString)
import CmmExpr
import CLabel
import MkGraph
@@ -246,7 +248,8 @@ buildDynCon' dflags _ binder actually_bound ccs con args
; hp_plus_n <- allocDynClosure ticky_name info_tbl lf_info
use_cc blame_cc args_w_offsets
- ; when (isDataTyCon $ dataConTyCon con)
+ ; let conname = occNameString $ nameOccName $ getName $ con -- occNameFS $ getOccName $ getName $ con
+ ; when (conname == "SDC" && (isDataTyCon $ dataConTyCon con))
$ mapM_ (checkTagOnPtr hp_plus_n) (take ptr_wds $ zip args_w_offsets $ dataConImplBangs con)
; return (mkRhsInit dflags reg lf_info hp_plus_n) }
where
More information about the ghc-commits
mailing list