Split out "Raw Cmm" dump to its own flag -ddump-raw-cmm
authorEdward Z. Yang <ezyang@mit.edu>
Tue, 22 Mar 2011 15:16:52 +0000 (15:16 +0000)
committerEdward Z. Yang <ezyang@mit.edu>
Tue, 22 Mar 2011 15:16:52 +0000 (15:16 +0000)
commit419821c7b153c1a05cb59d08c3d93e024aee48e6
tree4714978a289030bc0e0958dd0ce234e6ee969fe4
parent3e3498ad6f60e94eb38a9c7586971495440b895b
Split out "Raw Cmm" dump to its own flag -ddump-raw-cmm

Previously, -ddump-cmmz was used to dump out the "Raw Cmm" right
before it gets passed to the backends, as well as all of the
intermediate phases in the new code generator.  Unfortunately,
there are a lot of intermediate phases, which means -ddump-cmmz
takes a very long time with -fnew-codegen for large programs,
even if you're only interested in the final result.

Here we split up -ddump-cmmz into -ddump-cmmz (now exclusively for
the new code generator) and -ddump-raw-cmm (for both code generation
paths.) The old flag was not documented in the manual, so hopefully
not too many people will be surprised by this change.
compiler/main/DynFlags.hs
compiler/main/HscMain.lhs