[commit: ghc] wip/T14152: Run exitification before the final simplifier run (8358716)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 01:30:34 UTC 2017


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

On branch  : wip/T14152
Link       : http://ghc.haskell.org/trac/ghc/changeset/8358716d93337455e5884f56596ea4973db35fcc/ghc

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

commit 8358716d93337455e5884f56596ea4973db35fcc
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Thu Oct 26 09:22:06 2017 -0400

    Run exitification before the final simplifier run


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

8358716d93337455e5884f56596ea4973db35fcc
 compiler/simplCore/SimplCore.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler/simplCore/SimplCore.hs b/compiler/simplCore/SimplCore.hs
index 21a5c21..a88ed63 100644
--- a/compiler/simplCore/SimplCore.hs
+++ b/compiler/simplCore/SimplCore.hs
@@ -310,8 +310,6 @@ getCoreToDo dflags
 
         runWhen strictness demand_analyser,
 
-        runWhen exitification CoreDoExitify,
-
         runWhen full_laziness $
            CoreDoFloatOutwards FloatOutSwitches {
                                  floatOutLambdas     = floatLamArgs dflags,
@@ -347,6 +345,8 @@ getCoreToDo dflags
 
         maybe_rule_check (Phase 0),
 
+        runWhen exitification CoreDoExitify,
+
         -- Final clean-up simplification:
         simpl_phase 0 ["final"] max_iter,
 



More information about the ghc-commits mailing list