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

git at git.haskell.org git at git.haskell.org
Thu Mar 5 17:47:04 UTC 2015


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

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

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

commit a2a6c70126df4d1448f615cec585cdeae4f9bb07
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.


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

a2a6c70126df4d1448f615cec585cdeae4f9bb07
 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 a2a6c70126df4d1448f615cec585cdeae4f9bb07


More information about the ghc-commits mailing list