[commit: ghc] master: Don't use unsafeGlobalDynFlags in optCoercion (64c71ce)
git at git.haskell.org
git at git.haskell.org
Fri Jun 8 00:06:26 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/64c71ce956af3af593a46ef0d615c7f6fe6ecece/ghc
>---------------------------------------------------------------
commit 64c71ce956af3af593a46ef0d615c7f6fe6ecece
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Thu Jun 7 13:20:30 2018 -0400
Don't use unsafeGlobalDynFlags in optCoercion
This plumbs DynFlags through CoreOpt so optCoercion can finally
eliminate its usage of `unsafeGlobalDynFlags`.
Note that this doesn't completely eliminate `unsafeGlobalDynFlags`
usage from this bit of the compiler. A few uses are introduced in
call-sites where we don't (yet) have ready access to `DynFlags`.
Test Plan: Validate
Reviewers: goldfire
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4774
>---------------------------------------------------------------
64c71ce956af3af593a46ef0d615c7f6fe6ecece
compiler/coreSyn/CoreOpt.hs | 43 ++++++++++++++++++++++-----------------
compiler/coreSyn/CoreUnfold.hs | 27 ++++++++++++------------
compiler/deSugar/Desugar.hs | 6 +++---
compiler/deSugar/DsBinds.hs | 4 ++--
compiler/simplCore/Simplify.hs | 5 +++--
compiler/specialise/Specialise.hs | 2 +-
compiler/types/OptCoercion.hs | 12 +++++++----
7 files changed, 55 insertions(+), 44 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 64c71ce956af3af593a46ef0d615c7f6fe6ecece
More information about the ghc-commits
mailing list