[commit: ghc] wip/kavon-nosplit-llvm: turning off splitting when using LLVM to start things off (b0bbfd2)

git at git.haskell.org git at git.haskell.org
Tue Jun 27 09:14:48 UTC 2017


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

On branch  : wip/kavon-nosplit-llvm
Link       : http://ghc.haskell.org/trac/ghc/changeset/b0bbfd23b2db1e6cc6e90c35d102d408309f3ebb/ghc

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

commit b0bbfd23b2db1e6cc6e90c35d102d408309f3ebb
Author: Kavon Farvardin <kavon at farvard.in>
Date:   Wed May 10 17:36:34 2017 +0100

    turning off splitting when using LLVM to start things off


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

b0bbfd23b2db1e6cc6e90c35d102d408309f3ebb
 compiler/cmm/CmmPipeline.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compiler/cmm/CmmPipeline.hs b/compiler/cmm/CmmPipeline.hs
index a0fe4b1..d43327f 100644
--- a/compiler/cmm/CmmPipeline.hs
+++ b/compiler/cmm/CmmPipeline.hs
@@ -158,7 +158,8 @@ cpsTop hsc_env proc =
         -- tablesNextToCode is off.  The latter is because we have no
         -- label to put on info tables for basic blocks that are not
         -- the entry point.
-        splitting_proc_points = hscTarget dflags /= HscAsm
+        target = hscTarget dflags
+        splitting_proc_points = not (target == HscAsm || target == HscLlvm)
                              || not (tablesNextToCode dflags)
                              || -- Note [inconsistent-pic-reg]
                                 usingInconsistentPicReg



More information about the ghc-commits mailing list