X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FHscMain.lhs;h=2d1f71e33b2693a7b7c17404dc197ae1ff336da4;hb=c1681a73fa4ca4cf8758264ae387ac09a9e900d8;hp=f0fd95da23a1516537390eb89895923443b09aaf;hpb=d31dfb32ea936c22628b508c28a36c12e631430a;p=ghc-hetmet.git diff --git a/compiler/main/HscMain.lhs b/compiler/main/HscMain.lhs index f0fd95d..2d1f71e 100644 --- a/compiler/main/HscMain.lhs +++ b/compiler/main/HscMain.lhs @@ -476,13 +476,11 @@ hscSimplify :: ModGuts -> Comp ModGuts hscSimplify ds_result = do hsc_env <- gets compHscEnv liftIO $ do - flat_result <- {-# SCC "Flattening" #-} - flatten hsc_env ds_result ------------------- -- SIMPLIFY ------------------- simpl_result <- {-# SCC "Core2Core" #-} - core2core hsc_env flat_result + core2core hsc_env ds_result return simpl_result -------------------------------------------------------------- @@ -606,7 +604,7 @@ hscCompile cgguts foreign_stubs dir_imps cost_centre_info stg_binds hpc_info ------------------ Convert to CPS -------------------- - --continuationC <- cmmCPS dflags abstractC + --continuationC <- cmmCPS dflags abstractC >>= cmmToRawCmm continuationC <- cmmToRawCmm abstractC ------------------ Code output ----------------------- (stub_h_exists,stub_c_exists) @@ -692,8 +690,7 @@ hscFileCheck hsc_env mod_summary compileToCore = do { md_rules = [panic "no rules"], -- Rules are CoreRules, not the -- RuleDecls we get out of the typechecker - md_vect_info = - panic "HscMain.hscFileCheck: no VectInfo" + md_vect_info = noVectInfo -- VectInfo is added by the Core -- vectorisation pass } @@ -723,7 +720,7 @@ hscCmmFile dflags filename = do case maybe_cmm of Nothing -> return False Just cmm -> do - --continuationC <- cmmCPS dflags [cmm] + --continuationC <- cmmCPS dflags [cmm] >>= cmmToRawCmm continuationC <- cmmToRawCmm [cmm] codeOutput dflags no_mod no_loc NoStubs [] continuationC return True