diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-09-18 22:44:15 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-09-18 22:44:16 -0400 |
commit | 8929db00d79d10cedc522422d7dbb97db07bf308 (patch) | |
tree | 2244521a478d9c0eca5241b2460bca7a649853e9 /compiler/simplCore/CoreMonad.hs | |
parent | 74e8cc1ff5efa57a86e94abf0c909af153b0b70b (diff) | |
download | haskell-wip/anf-core.tar.gz |
[WIP] Simple ANFisation pass for Corewip/anf-core
This begins to explore the ideas described by @simonpj in #14222.
Currently this is mostly just infrastructure; clearly some more thought
needs to be put into when this pass should be run.
Test Plan: TODO
Reviewers: austin, goldfire
Subscribers: rwbarton, thomie, simonpj
GHC Trac Issues: #14222
Differential Revision: https://phabricator.haskell.org/D3990
Diffstat (limited to 'compiler/simplCore/CoreMonad.hs')
-rw-r--r-- | compiler/simplCore/CoreMonad.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/simplCore/CoreMonad.hs b/compiler/simplCore/CoreMonad.hs index 46d81dfb8b..d64f89d2b8 100644 --- a/compiler/simplCore/CoreMonad.hs +++ b/compiler/simplCore/CoreMonad.hs @@ -115,6 +115,7 @@ data CoreToDo -- These are diff core-to-core passes, | CoreDoPrintCore | CoreDoStaticArgs | CoreDoCallArity + | CoreDoAnfise | CoreDoExitify | CoreDoStrictness | CoreDoWorkerWrapper @@ -143,6 +144,7 @@ instance Outputable CoreToDo where ppr CoreLiberateCase = text "Liberate case" ppr CoreDoStaticArgs = text "Static argument" ppr CoreDoCallArity = text "Called arity analysis" + ppr CoreDoAnfise = text "ANFisation" ppr CoreDoExitify = text "Exitification transformation" ppr CoreDoStrictness = text "Demand analysis" ppr CoreDoWorkerWrapper = text "Worker Wrapper binds" |