[commit: ghc] master: Adds llvm-prof flavour (8b2e588)

git at git.haskell.org git at git.haskell.org
Thu Dec 15 15:43:49 UTC 2016


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

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

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

commit 8b2e5881550be049303b99d7862fb3c85b9ae2a4
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date:   Wed Dec 14 16:45:48 2016 -0500

    Adds llvm-prof flavour
    
    Reviewers: austin, bgamari, RyanGlScott
    
    Reviewed By: bgamari, RyanGlScott
    
    Subscribers: RyanGlScott, thomie
    
    Differential Revision: https://phabricator.haskell.org/D2824


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

8b2e5881550be049303b99d7862fb3c85b9ae2a4
 mk/build.mk.sample                    | 3 +++
 mk/flavours/{prof.mk => prof-llvm.mk} | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/mk/build.mk.sample b/mk/build.mk.sample
index 6266219..e9219bd 100644
--- a/mk/build.mk.sample
+++ b/mk/build.mk.sample
@@ -34,6 +34,9 @@
 # Profile the stage2 compiler:
 #BuildFlavour = prof
 
+# Profile the stage2 compiler (LLVM backend):
+#BuildFlavour = prof-llvm
+
 # A development build, working on the stage 1 compiler:
 #BuildFlavour = devel1
 
diff --git a/mk/flavours/prof.mk b/mk/flavours/prof-llvm.mk
similarity index 86%
copy from mk/flavours/prof.mk
copy to mk/flavours/prof-llvm.mk
index 67f89e6..b54fabd 100644
--- a/mk/flavours/prof.mk
+++ b/mk/flavours/prof-llvm.mk
@@ -1,4 +1,4 @@
-SRC_HC_OPTS        = -O0 -H64m
+SRC_HC_OPTS        = -O0 -H64m -fllvm
 GhcStage1HcOpts    = -O
 GhcStage2HcOpts    = -O
 GhcLibHcOpts       = -O



More information about the ghc-commits mailing list