[commit: ghc] wip/T10137: Refactor CmmSwitch: Use a Map (62cfcaf)

git at git.haskell.org git at git.haskell.org
Wed Mar 4 18:53:07 UTC 2015


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

On branch  : wip/T10137
Link       : http://ghc.haskell.org/trac/ghc/changeset/62cfcaf57f91a91ee7a79c948712916452c0a216/ghc

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

commit 62cfcaf57f91a91ee7a79c948712916452c0a216
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.


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

62cfcaf57f91a91ee7a79c948712916452c0a216
 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, 141 insertions(+), 88 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 62cfcaf57f91a91ee7a79c948712916452c0a216


More information about the ghc-commits mailing list