Forked from
Glasgow Haskell Compiler / GHC
6690 commits behind, 467 commits ahead of the upstream repository.

Cheng Shao
authored
This commit moves GHC.CmmToAsm.cmmToCmm to a standalone module, GHC.Cmm.GenericOpt. The main motivation is enabling this logic to be run in the wasm backend NCG code, which is defined in other modules that's imported by GHC.CmmToAsm, causing a cyclic dependency issue. (cherry picked from commit 6534da24)