summaryrefslogtreecommitdiff
path: root/compiler/simplCore/CoreMonad.hs
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2015-10-08 14:07:02 +0200
committerJoachim Breitner <mail@joachim-breitner.de>2015-11-06 15:55:21 +0100
commit761639c60d80273b2036de72c56b7dfa26cd5be8 (patch)
tree7eb581cbb407d8f0a0a441d465880183702db11b /compiler/simplCore/CoreMonad.hs
parent5d3221aeefd3fab8c7ded74110997571805ab2ec (diff)
downloadhaskell-wip/T10918.tar.gz
Make Call Arity aggressive only in the second runwip/T10918
not that I believe that this is a viable solution, but it should be a way to work around https://ghc.haskell.org/trac/ghc/ticket/10918#comment:10 and hopefully tell me whether the whole thing is actually useful.
Diffstat (limited to 'compiler/simplCore/CoreMonad.hs')
-rw-r--r--compiler/simplCore/CoreMonad.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/simplCore/CoreMonad.hs b/compiler/simplCore/CoreMonad.hs
index ce5286d08a..7ab1861819 100644
--- a/compiler/simplCore/CoreMonad.hs
+++ b/compiler/simplCore/CoreMonad.hs
@@ -129,7 +129,7 @@ data CoreToDo -- These are diff core-to-core passes,
| CoreLiberateCase
| CoreDoPrintCore
| CoreDoStaticArgs
- | CoreDoCallArity
+ | CoreDoCallArity Bool
| CoreDoStrictness
| CoreDoWorkerWrapper
| CoreDoSpecialising
@@ -155,7 +155,7 @@ instance Outputable CoreToDo where
ppr (CoreDoFloatOutwards f) = ptext (sLit "Float out") <> parens (ppr f)
ppr CoreLiberateCase = ptext (sLit "Liberate case")
ppr CoreDoStaticArgs = ptext (sLit "Static argument")
- ppr CoreDoCallArity = ptext (sLit "Called arity analysis")
+ ppr (CoreDoCallArity _) = ptext (sLit "Called arity analysis")
ppr CoreDoStrictness = ptext (sLit "Demand analysis")
ppr CoreDoWorkerWrapper = ptext (sLit "Worker Wrapper binds")
ppr CoreDoSpecialising = ptext (sLit "Specialise")