X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FsimplStg%2FSRT.lhs;h=3fba6e582a4b89a4f3064570229f731c821ce7ae;hp=cd118d70922bf0957030cb44eab6682ad417fd55;hb=ad94d40948668032189ad22a0ad741ac1f645f50;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1 diff --git a/compiler/simplStg/SRT.lhs b/compiler/simplStg/SRT.lhs index cd118d7..3fba6e5 100644 --- a/compiler/simplStg/SRT.lhs +++ b/compiler/simplStg/SRT.lhs @@ -7,6 +7,13 @@ each let-binding. At the same time, we figure out which top-level bindings have no CAF references, and record the fact in their IdInfo. \begin{code} +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings +-- for details + module SRT( computeSRTs ) where #include "HsVersions.h" @@ -15,9 +22,7 @@ import StgSyn import Id ( Id ) import VarSet import VarEnv -import Util ( sortLe ) -import Maybes ( orElse ) -import Maybes ( expectJust ) +import Maybes ( orElse, expectJust ) import Bitmap ( intsToBitmap ) #ifdef DEBUG @@ -27,7 +32,6 @@ import Outputable import List import Util -import Outputable \end{code} \begin{code} @@ -116,6 +120,8 @@ srtExpr table e@(StgOpApp op args ty) = e srtExpr table (StgSCC cc expr) = StgSCC cc $! srtExpr table expr +srtExpr table (StgTick m n expr) = StgTick m n $! srtExpr table expr + srtExpr table (StgCase scrut live1 live2 uniq srt alt_type alts) = StgCase expr' live1 live2 uniq srt' alt_type alts' where