Move control flow optimization to CmmCPS.
authorEdward Z. Yang <ezyang@mit.edu>
Tue, 14 Jun 2011 11:29:38 +0000 (12:29 +0100)
committerEdward Z. Yang <ezyang@mit.edu>
Tue, 14 Jun 2011 11:29:38 +0000 (12:29 +0100)
commitc8e5f0f65223013cd21f25512b21eac0327aefdf
tree886f97d3b5a933e099c836857235f868f281c40c
parentf13f9fca8444da225443aea190e8659b96954ae9
Move control flow optimization to CmmCPS.

Unfortunately, I couldn't remove all incidences of runCmmContFlowOpt
from HscMain; in particular, there is a Cmm conversion testing
facility which may run with only control flow optimizations, which
I preserved the semantics of.  Given the state of the current
codegen, this code might be moribund anyway.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
compiler/cmm/CmmCPS.hs
compiler/cmm/cmm-notes
compiler/main/HscMain.lhs