summaryrefslogtreecommitdiff
path: root/compiler/simplStg/SimplStg.lhs
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-09-25 16:03:36 +0100
committerSimon Marlow <marlowsd@gmail.com>2012-09-25 16:13:17 +0100
commit16206a6603e87e15d61c57456267c5f7ba68050e (patch)
tree1c5577358d3c50adf44ef3dadbfa85c53a3ef27d /compiler/simplStg/SimplStg.lhs
parent3473e213941b74a1074ec0cde77c0eeccf885e03 (diff)
downloadhaskell-16206a6603e87e15d61c57456267c5f7ba68050e.tar.gz
Remove some old-codegen cruft
Diffstat (limited to 'compiler/simplStg/SimplStg.lhs')
-rw-r--r--compiler/simplStg/SimplStg.lhs13
1 files changed, 4 insertions, 9 deletions
diff --git a/compiler/simplStg/SimplStg.lhs b/compiler/simplStg/SimplStg.lhs
index 129d8c6423..871a5f4960 100644
--- a/compiler/simplStg/SimplStg.lhs
+++ b/compiler/simplStg/SimplStg.lhs
@@ -22,12 +22,10 @@ import SCCfinal ( stgMassageForProfiling )
import StgLint ( lintStgBindings )
import StgStats ( showStgStats )
import UnariseStg ( unarise )
-import SRT ( computeSRTs )
import DynFlags ( DynFlags(..), DynFlag(..), dopt, StgToDo(..),
getStgToDo )
-import Id ( Id )
-import Module ( Module )
+import Module ( Module )
import ErrUtils
import SrcLoc
import UniqSupply ( mkSplitUniqSupply, splitUniqSupply )
@@ -38,7 +36,7 @@ import Outputable
stg2stg :: DynFlags -- includes spec of what stg-to-stg passes to do
-> Module -- module name (profiling only)
-> [StgBinding] -- input...
- -> IO ( [(StgBinding,[(Id,[Id])])] -- output program...
+ -> IO ( [StgBinding] -- output program...
, CollectedCCs) -- cost centre information (declared and used)
stg2stg dflags module_name binds
@@ -56,14 +54,11 @@ stg2stg dflags module_name binds
<- foldl_mn do_stg_pass (binds', us0, ccs) (getStgToDo dflags)
; let un_binds = unarise us1 processed_binds
- ; let srt_binds
- | dopt Opt_TryNewCodeGen dflags = zip un_binds (repeat [])
- | otherwise = computeSRTs dflags un_binds
; dumpIfSet_dyn dflags Opt_D_dump_stg "STG syntax:"
- (pprStgBindingsWithSRTs srt_binds)
+ (pprStgBindings un_binds)
- ; return (srt_binds, cost_centres)
+ ; return (un_binds, cost_centres)
}
where