projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4a7b71
)
Turn "NOTE: Simplifier still going..." message into a WARN()
author
Simon Marlow
<marlowsd@gmail.com>
Tue, 3 Jun 2008 10:54:31 +0000
(10:54 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Tue, 3 Jun 2008 10:54:31 +0000
(10:54 +0000)
compiler/simplCore/SimplCore.lhs
patch
|
blob
|
history
diff --git
a/compiler/simplCore/SimplCore.lhs
b/compiler/simplCore/SimplCore.lhs
index
9a4c1eb
..
75fbf19
100644
(file)
--- a/
compiler/simplCore/SimplCore.lhs
+++ b/
compiler/simplCore/SimplCore.lhs
@@
-493,15
+493,13
@@
simplifyPgm mode switches hsc_env us imp_rule_base guts
-- iteration_no is the number of the iteration we are
-- about to begin, with '1' for the first
| iteration_no > max_iterations -- Stop if we've run out of iterations
-- iteration_no is the number of the iteration we are
-- about to begin, with '1' for the first
| iteration_no > max_iterations -- Stop if we've run out of iterations
- = do {
- when (debugIsOn && (max_iterations > 2)) $
- hPutStr stderr ("NOTE: Simplifier still going after " ++
- show max_iterations ++
- " iterations; bailing out. Size = " ++ show (coreBindsSize binds) ++ "\n" )
+ = WARN(debugIsOn && (max_iterations > 2),
+ text ("Simplifier still going after " ++
+ show max_iterations ++
+ " iterations; bailing out. Size = " ++ show (coreBindsSize binds) ++ "\n" ))
-- Subtract 1 from iteration_no to get the
-- number of iterations we actually completed
-- Subtract 1 from iteration_no to get the
-- number of iterations we actually completed
- ; return ("Simplifier bailed out", iteration_no - 1, counts, binds)
- }
+ return ("Simplifier bailed out", iteration_no - 1, counts, binds)
-- Try and force thunks off the binds; significantly reduces
-- space usage, especially with -O. JRS, 000620.
-- Try and force thunks off the binds; significantly reduces
-- space usage, especially with -O. JRS, 000620.