diff options
author | Douglas Wilson <douglas.wilson@gmail.com> | 2017-11-06 16:50:39 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-11-06 16:50:40 -0500 |
commit | fc6f58477fe0ecdc5ede3d6b7e6590caacb926ef (patch) | |
tree | 6a690c4a7cb791137698b4f1064cf3fb1c1ae10f /compiler/utils/Binary.hs | |
parent | 275ac8ef0a0081f16abbfb8934e10cf271573768 (diff) | |
download | haskell-wip/use-O2.tar.gz |
Change `OPTIONS_GHC -O` to `OPTIONS_GHC -O2`wip/use-O2
These pragmas were having the perverse effect of having these
performance
critical modules be LESS optimized in builds with -O2.
Test Plan: Check on gipedia whether this is worthwhile.
Reviewers: austin, bgamari
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D4156
Diffstat (limited to 'compiler/utils/Binary.hs')
-rw-r--r-- | compiler/utils/Binary.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/utils/Binary.hs b/compiler/utils/Binary.hs index a7bbfd51ad..c3c8ae3ab7 100644 --- a/compiler/utils/Binary.hs +++ b/compiler/utils/Binary.hs @@ -5,7 +5,7 @@ {-# LANGUAGE GADTs #-} {-# LANGUAGE MultiWayIf #-} -{-# OPTIONS_GHC -O -funbox-strict-fields #-} +{-# OPTIONS_GHC -O2 -funbox-strict-fields #-} -- We always optimise this, otherwise performance of a non-optimised -- compiler is severely affected |