[commit: ghc] ghc-7.2: Refactoring: explicitly mark whether we have an info table in RawCmm (bbebb19)

Ian Lynagh igloo at earth.li
Fri Jul 8 17:10:40 CEST 2011


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : ghc-7.2

http://hackage.haskell.org/trac/ghc/changeset/bbebb1912edad46a6bb192954d289b4f404d742f

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

commit bbebb1912edad46a6bb192954d289b4f404d742f
Author: Max Bolingbroke <batterseapower at hotmail.com>
Date:   Wed Jul 6 16:18:09 2011 +0100

    Refactoring: explicitly mark whether we have an info table in RawCmm
    
    I introduced this to support explicitly recording the info table label
    in RawCmm for another patch I am working on, but it turned out to lead
    to significant simplification in those parts of the compiler that
    consume RawCmm.
    
    Now, instead of lots of tests for null [CmmStatic] we have a simple
    test of a Maybe, and have reduced the number of guys that need to know
    how to convert entry->info labels by a TON. There are only 3 callers
    of that function now!

 compiler/cmm/CmmDecl.hs                 |    2 +-
 compiler/cmm/CmmInfo.hs                 |    6 ++--
 compiler/cmm/CmmOpt.hs                  |   11 ++++-----
 compiler/cmm/OldCmm.hs                  |    9 +++++--
 compiler/cmm/PprC.hs                    |   10 ++++----
 compiler/llvmGen/LlvmCodeGen.hs         |    7 ++---
 compiler/llvmGen/LlvmCodeGen/Base.hs    |    2 +-
 compiler/llvmGen/LlvmCodeGen/Ppr.hs     |   20 +++++++++---------
 compiler/nativeGen/AsmCodeGen.lhs       |    2 +-
 compiler/nativeGen/Instruction.hs       |    4 +-
 compiler/nativeGen/PPC/Ppr.hs           |   30 +++++++++++++++-------------
 compiler/nativeGen/RegAlloc/Liveness.hs |    6 ++--
 compiler/nativeGen/SPARC/Ppr.hs         |   30 +++++++++++++++-------------
 compiler/nativeGen/X86/Ppr.hs           |   33 ++++++++++++++++--------------
 14 files changed, 90 insertions(+), 82 deletions(-)


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

    git show bbebb1912edad46a6bb192954d289b4f404d742f



More information about the Cvs-ghc mailing list