projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't inline a loop breaker, even if it has an INLINE pragma
[ghc-hetmet.git]
/
compiler
/
simplCore
/
CoreMonad.lhs
diff --git
a/compiler/simplCore/CoreMonad.lhs
b/compiler/simplCore/CoreMonad.lhs
index
f806089
..
9eef502
100644
(file)
--- a/
compiler/simplCore/CoreMonad.lhs
+++ b/
compiler/simplCore/CoreMonad.lhs
@@
-25,7
+25,7
@@
module CoreMonad (
findAnnotations, deserializeAnnotations, addAnnotation,
-- ** Debug output
findAnnotations, deserializeAnnotations, addAnnotation,
-- ** Debug output
- endPass, endPassIf,
+ endPass, endPassIf, endIteration,
-- ** Screen output
putMsg, putMsgS, errorMsg, errorMsgS,
-- ** Screen output
putMsg, putMsgS, errorMsg, errorMsgS,
@@
-97,6
+97,10
@@
endPass = dumpAndLint Err.dumpIfSet_core
endPassIf :: Bool -> DynFlags -> String -> DynFlag -> [CoreBind] -> [CoreRule] -> IO ()
endPassIf cond = dumpAndLint (Err.dumpIf_core cond)
endPassIf :: Bool -> DynFlags -> String -> DynFlag -> [CoreBind] -> [CoreRule] -> IO ()
endPassIf cond = dumpAndLint (Err.dumpIf_core cond)
+-- Same as endPass but doesn't dump Core even with -dverbose-core2core
+endIteration :: DynFlags -> String -> DynFlag -> [CoreBind] -> [CoreRule] -> IO ()
+endIteration = dumpAndLint Err.dumpIfSet_dyn
+
dumpAndLint :: (DynFlags -> DynFlag -> String -> SDoc -> IO ())
-> DynFlags -> String -> DynFlag
-> [CoreBind] -> [CoreRule] -> IO ()
dumpAndLint :: (DynFlags -> DynFlag -> String -> SDoc -> IO ())
-> DynFlags -> String -> DynFlag
-> [CoreBind] -> [CoreRule] -> IO ()