[commit: ghc] wip/T11295-part1: Extract hard-coded LLVM opt flags into a file (0b8b867)

git at git.haskell.org git at git.haskell.org
Wed May 16 20:58:12 UTC 2018


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

On branch  : wip/T11295-part1
Link       : http://ghc.haskell.org/trac/ghc/changeset/0b8b86708f48e036795412d420b073b3b61c5e4a/ghc

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

commit 0b8b86708f48e036795412d420b073b3b61c5e4a
Merge: 58221e4 01b15b8
Author: Kavon Farvardin <kavon at farvard.in>
Date:   Tue May 15 14:09:28 2018 -0500

    Extract hard-coded LLVM opt flags into a file
    
    Summary:
    To resolve ticket #11295, I think it makes sense to stop hard-coding
    the pass sequences used by GHC when compiling with LLVM into the compiler
    itself.
    
    This patchset introduces a companion to the existing `llvm-targets` file
    called `llvm-passes`. The passes file is a simple association list that
    holds the default LLVM `opt` pass sequence used by GHC. This allows end
    users to easily save their favorite optimization flags when compiling
    with LLVM.
    
    The main benefit for ticket #11295 is that when adding a custom pass
    sequence, it tends to be an extremely long string that would be
    unsightly in the code.
    
    This is essentially part 1 of 2 for ticket #11295.
    
    Test Plan: ./validate
    
    Reviewers: bgamari, angerman
    
    Subscribers: rwbarton, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4695



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

0b8b86708f48e036795412d420b073b3b61c5e4a
 compiler/coreSyn/CoreUnfold.hs                     | 33 ++++++-------
 compiler/typecheck/TcErrors.hs                     | 56 +++++++++++++---------
 configure.ac                                       |  6 +++
 libraries/base/GHC/Conc/IO.hs                      |  5 +-
 libraries/base/GHC/IO/FD.hs                        | 51 +++++++++++++-------
 rts/rts.cabal.in                                   |  4 ++
 .../tests/partial-sigs/should_fail/T14584.stderr   | 11 +++++
 .../tests/partial-sigs/should_fail/T14584a.stderr  | 13 +++++
 testsuite/tests/perf/compiler/all.T                | 19 ++++----
 9 files changed, 130 insertions(+), 68 deletions(-)



More information about the ghc-commits mailing list