[commit: ghc] master: Allow CmmLabelDiffOff with different widths (fbd28e2)

git at git.haskell.org git at git.haskell.org
Wed May 16 12:36:39 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/fbd28e2c6b5f1302cd2d36d79149e3b0a9f01d84/ghc

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

commit fbd28e2c6b5f1302cd2d36d79149e3b0a9f01d84
Author: Simon Marlow <marlowsd at gmail.com>
Date:   Sun Apr 22 12:48:11 2018 +0100

    Allow CmmLabelDiffOff with different widths
    
    Summary:
    This change makes it possible to generate a static 32-bit relative label
    offset on x86_64. Currently we can only generate word-sized label
    offsets.
    
    This will be used in D4634 to shrink info tables.  See D4632 for more
    details.
    
    Test Plan: See D4632
    
    Reviewers: bgamari, niteria, michalt, erikd, jrtc27, osa1
    
    Subscribers: thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4633


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

fbd28e2c6b5f1302cd2d36d79149e3b0a9f01d84
 compiler/cmm/CmmBuildInfoTables.hs       |  2 +-
 compiler/cmm/CmmCommonBlockElim.hs       |  2 +-
 compiler/cmm/CmmExpr.hs                  |  7 +++++--
 compiler/cmm/CmmInfo.hs                  |  4 ++--
 compiler/cmm/CmmUtils.hs                 |  4 ++--
 compiler/cmm/PprC.hs                     |  6 +++---
 compiler/cmm/PprCmmExpr.hs               |  2 +-
 compiler/llvmGen/Llvm/Types.hs           |  4 ++++
 compiler/llvmGen/LlvmCodeGen/CodeGen.hs  | 14 +++++++++-----
 compiler/llvmGen/LlvmCodeGen/Data.hs     |  8 +++++---
 compiler/nativeGen/PIC.hs                | 24 ++++++++++++------------
 compiler/nativeGen/PPC/CodeGen.hs        |  3 ++-
 compiler/nativeGen/PPC/RegInfo.hs        |  4 ++--
 compiler/nativeGen/PPC/Regs.hs           |  2 +-
 compiler/nativeGen/SPARC/Imm.hs          |  2 +-
 compiler/nativeGen/SPARC/ShortcutJump.hs |  4 ++--
 compiler/nativeGen/X86/CodeGen.hs        |  7 ++++---
 compiler/nativeGen/X86/Instr.hs          |  4 ++--
 compiler/nativeGen/X86/Ppr.hs            |  2 +-
 compiler/nativeGen/X86/Regs.hs           |  2 +-
 20 files changed, 61 insertions(+), 46 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 fbd28e2c6b5f1302cd2d36d79149e3b0a9f01d84


More information about the ghc-commits mailing list