summaryrefslogtreecommitdiff
path: root/compiler/cmm/CmmParse.y
diff options
context:
space:
mode:
authorVladimir Trubilov <vtrubiloff@gmail.com>2016-07-17 00:13:22 +0200
committerBen Gamari <ben@smart-cactus.org>2016-07-17 00:13:31 +0200
commit1ba79fa4d0e13e61a805fa458bcf2e690710d88b (patch)
tree15027609774083de6437767ce1449f358a0e3d1e /compiler/cmm/CmmParse.y
parent0f0cdb6827803015a9a3924fdafaef8dbcde048f (diff)
downloadhaskell-1ba79fa4d0e13e61a805fa458bcf2e690710d88b.tar.gz
CodeGen: Way to dump cmm only once (#11717)
The `-ddump-cmm` put all stages of Cmm processing into one output. This patch changes its behavior and adds two more options to make Cmm dumping flexible. - `-ddump-cmm-from-stg` dumps only initial version of Cmm right after STG->Cmm codegen - `-ddump-cmm` dumps the final result of the Cmm pipeline processing - `-ddump-cmm-verbose` dumps intermediate output of each Cmm pipeline step - `-ddump-cmm-proc` and `-ddump-cmm-caf` seems were lost. Now enabled Test Plan: ./validate Reviewers: thomie, simonmar, austin, bgamari Reviewed By: thomie, simonmar Subscribers: simonpj, thomie Differential Revision: https://phabricator.haskell.org/D2393 GHC Trac Issues: #11717
Diffstat (limited to 'compiler/cmm/CmmParse.y')
-rw-r--r--compiler/cmm/CmmParse.y4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/cmm/CmmParse.y b/compiler/cmm/CmmParse.y
index e07e0a65c8..6b326b8bfb 100644
--- a/compiler/cmm/CmmParse.y
+++ b/compiler/cmm/CmmParse.y
@@ -1394,9 +1394,7 @@ parseCmmFile dflags filename = withTiming (pure dflags) (text "ParseCmm"<+>brack
let ms = getMessages pst dflags
if (errorsFound dflags ms)
then return (ms, Nothing)
- else do
- dumpIfSet_dyn dflags Opt_D_dump_cmm "Cmm" (ppr cmm)
- return (ms, Just cmm)
+ else return (ms, Just cmm)
where
no_module = panic "parseCmmFile: no module"
}