[commit: ghc] wip/T10137: Refactor CmmSwitch: Use a Map (11a51f5)

git at git.haskell.org git at git.haskell.org
Wed Mar 4 19:59:18 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T10137
Link       : http://ghc.haskell.org/trac/ghc/changeset/11a51f50da18956fa61930905c05a43ae95e3031/ghc

>---------------------------------------------------------------

commit 11a51f50da18956fa61930905c05a43ae95e3031
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Wed Mar 4 19:54:17 2015 +0100

    Refactor CmmSwitch: Use a Map
    
    this is in preparation for #10137, where we want to be able to express
    sparse switch statements in Cmm.


>---------------------------------------------------------------

11a51f50da18956fa61930905c05a43ae95e3031
 compiler/cmm/CmmCommonBlockElim.hs      | 10 +++--
 compiler/cmm/CmmContFlowOpt.hs          |  2 +-
 compiler/cmm/CmmLint.hs                 |  5 +--
 compiler/cmm/CmmNode.hs                 | 76 ++++++++++++++++++++++++++++-----
 compiler/cmm/CmmParse.y                 | 20 +++------
 compiler/cmm/CmmProcPoint.hs            |  4 +-
 compiler/cmm/MkGraph.hs                 |  4 +-
 compiler/cmm/PprC.hs                    | 24 ++++-------
 compiler/cmm/PprCmm.hs                  | 30 +++++++------
 compiler/codeGen/StgCmmUtils.hs         | 17 ++++----
 compiler/llvmGen/LlvmCodeGen/CodeGen.hs | 10 +++--
 compiler/nativeGen/PPC/CodeGen.hs       |  9 ++--
 compiler/nativeGen/SPARC/CodeGen.hs     |  9 ++--
 compiler/nativeGen/X86/CodeGen.hs       |  9 ++--
 14 files changed, 140 insertions(+), 89 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 11a51f50da18956fa61930905c05a43ae95e3031


More information about the ghc-commits mailing list