X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FcodeGen%2FStgCmmLayout.hs;h=dbc97d49d828743a989542da7743d7f7dddda8f8;hb=21eea25f1212ec306aac806233a2ec048212d529;hp=33fd3e8d5a4b74f062704b39fef5ec6ee7e3fc7d;hpb=309f64a0fd319198308f6b76bd22f38001bb5df0;p=ghc-hetmet.git diff --git a/compiler/codeGen/StgCmmLayout.hs b/compiler/codeGen/StgCmmLayout.hs index 33fd3e8..dbc97d4 100644 --- a/compiler/codeGen/StgCmmLayout.hs +++ b/compiler/codeGen/StgCmmLayout.hs @@ -80,7 +80,7 @@ emitReturn :: [CmmExpr] -> FCode () emitReturn results = do { sequel <- getSequel; ; updfr_off <- getUpdFrameOff - ; emit $ mkComment $ mkFastString "emitReturn" + ; emit $ mkComment $ mkFastString ("emitReturn: " ++ show sequel) ; case sequel of Return _ -> do { adjustHpBackwards @@ -97,7 +97,7 @@ emitCall conv fun args = do { adjustHpBackwards ; sequel <- getSequel ; updfr_off <- getUpdFrameOff - ; emit $ mkComment $ mkFastString "emitCall" + ; emit $ mkComment $ mkFastString ("emitCall: " ++ show sequel) ; case sequel of Return _ -> emit (mkForeignJump conv fun args updfr_off) AssignTo res_regs _ -> emit (mkCall fun conv res_regs args updfr_off) @@ -166,9 +166,6 @@ direct_call caller lbl arity args reps | otherwise -- Over-saturated call = ASSERT( arity == length initial_reps ) do { pap_id <- newTemp gcWord - ; let srt = pprTrace "Urk! SRT for over-sat call" - (ppr lbl) NoC_SRT - -- XXX: what if rest_args contains static refs? ; withSequel (AssignTo [pap_id] True) (emitCall Native target fast_args) ; slow_call (CmmReg (CmmLocal pap_id)) @@ -475,9 +472,7 @@ emitClosureProcAndInfoTable top_lvl bndr cl_info args body -- top-level binding, which this binding would incorrectly shadow. ; node <- if top_lvl then return $ idToReg (NonVoid bndr) else bindToReg (NonVoid bndr) lf_info - ; arg_regs <- - pprTrace "bindArgsToRegs" (ppr args) $ - bindArgsToRegs args + ; arg_regs <- bindArgsToRegs args ; emitClosureAndInfoTable cl_info (node : arg_regs) $ body (node, arg_regs) }