X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FsimplCore%2FFloatOut.lhs;h=e6e8b7a015fd11b27bf2f58ed746a525748642ca;hb=194eb4bbf6a96d08fee652e244dfc31685abf10e;hp=199153110bc708a0987b54260c2a5e5efb101523;hpb=7f7b6cefcfbcf81ca3abd18c65498c5ba4860204;p=ghc-hetmet.git diff --git a/compiler/simplCore/FloatOut.lhs b/compiler/simplCore/FloatOut.lhs index 1991531..e6e8b7a 100644 --- a/compiler/simplCore/FloatOut.lhs +++ b/compiler/simplCore/FloatOut.lhs @@ -6,6 +6,13 @@ ``Long-distance'' floating of bindings towards the top level. \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/Commentary/CodingStyle#Warnings +-- for details + module FloatOut ( floatOutwards ) where #include "HsVersions.h" @@ -314,7 +321,9 @@ floatExpr lvl (Note InlineMe expr) -- Other than SCCs -- more efficient to test once here than to avoid putting -- them into floating_defns (which would mean testing for -- inlineCtxt at every let) - (fs, [], Note InlineMe (install floating_defns expr')) } -- See notes in SetLevels + (fs, [], Note InlineMe (install floating_defns expr')) } + -- See Note [FloatOut inside INLINE] in SetLevels + -- I'm guessing that floating_dens should be empty floatExpr lvl (Note note expr) -- Other than SCCs = case (floatExpr lvl expr) of { (fs, floating_defns, expr') ->