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

git at git.haskell.org git at git.haskell.org
Wed Mar 4 19:44:15 UTC 2015


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

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

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

commit 667379ba3000afa13346cffb9cf660e6daa3693c
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.


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

667379ba3000afa13346cffb9cf660e6daa3693c
 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 667379ba3000afa13346cffb9cf660e6daa3693c


More information about the ghc-commits mailing list