[commit: ghc] wip/T14626: WIP: focus on SDC for now (248f045)

git at git.haskell.org git at git.haskell.org
Mon Jan 15 17:13:00 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T14626
Link       : http://ghc.haskell.org/trac/ghc/changeset/248f045ec243058ad4b3bbafe0ddb1de03021fca/ghc

>---------------------------------------------------------------

commit 248f045ec243058ad4b3bbafe0ddb1de03021fca
Author: Gabor Greif <ggreif at gmail.com>
Date:   Mon Jan 15 18:12:12 2018 +0100

    WIP: focus on SDC for now


>---------------------------------------------------------------

248f045ec243058ad4b3bbafe0ddb1de03021fca
 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