[commit: ghc] master: Improve the handling of Integer literals (1e87c0a)

Ian Lynagh igloo at earth.li
Sun Sep 18 00:26:19 CEST 2011


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

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/1e87c0a6e485e1dbef8e9ed19191e54f6cdc54e0

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

commit 1e87c0a6e485e1dbef8e9ed19191e54f6cdc54e0
Author: Ian Lynagh <igloo at earth.li>
Date:   Sat Sep 17 18:29:12 2011 +0100

    Improve the handling of Integer literals
    
    LitInteger now carries around the id of mkInteger, which it uses
    to construct the core to build Integer literals. This way we don't
    have to build in info about lots of Ids.
    
    We also no longer have any special-casing for integer-simple, so
    there is less code involved.

 compiler/basicTypes/Literal.lhs |   42 ++++++++++++++--------
 compiler/basicTypes/MkId.lhs    |   44 -----------------------
 compiler/codeGen/CgUtils.hs     |    2 +-
 compiler/coreSyn/CoreLint.lhs   |    3 +-
 compiler/coreSyn/CorePrep.lhs   |   56 +++++++++--------------------
 compiler/coreSyn/CoreUtils.lhs  |    2 +-
 compiler/coreSyn/MkCore.lhs     |    5 ++-
 compiler/ghc.mk                 |    1 +
 compiler/ghci/ByteCodeGen.lhs   |    2 +-
 compiler/iface/TcIface.lhs      |   14 +++++++-
 compiler/prelude/PrelNames.lhs  |   21 ++++-------
 compiler/prelude/PrelRules.lhs  |   18 +++++-----
 compiler/prelude/TysWiredIn.lhs |   75 +++++---------------------------------
 compiler/stgSyn/CoreToStg.lhs   |    2 +-
 compiler/typecheck/Inst.lhs     |    1 -
 15 files changed, 95 insertions(+), 193 deletions(-)


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

    git show 1e87c0a6e485e1dbef8e9ed19191e54f6cdc54e0



More information about the Cvs-ghc mailing list