[commit: ghc] wip/T10137: CmmSwitch: Take into account the range of values of Int# and Word# (6b8421d)

git at git.haskell.org git at git.haskell.org
Tue Mar 17 10:31:40 UTC 2015


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

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

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

commit 6b8421da148a78f57e745ad7de88faac4eeed8c3
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Tue Mar 17 11:30:38 2015 +0100

    CmmSwitch: Take into account the range of values of Int# and Word#
    
    to avoid problems around MAXINT and avoid unnecessary branches.
    Simplifies the types and code a bit.


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

6b8421da148a78f57e745ad7de88faac4eeed8c3
 compiler/cmm/CmmParse.y         |  5 ++-
 compiler/cmm/CmmSwitch.hs       | 94 +++++++++++------------------------------
 compiler/cmm/PprCmm.hs          |  6 +--
 compiler/codeGen/StgCmmUtils.hs | 13 +++---
 4 files changed, 37 insertions(+), 81 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 6b8421da148a78f57e745ad7de88faac4eeed8c3


More information about the ghc-commits mailing list