diff options
author | Douglas Wilson <douglas.wilson@gmail.com> | 2017-11-09 17:54:45 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-11-09 18:31:22 -0500 |
commit | 75291abaf6db7befbde5b4dadaea0b8047a75e06 (patch) | |
tree | 30097dc06477b45973abbaf7c11af16b983cddb6 /compiler/iface | |
parent | e6b13c963d0b54099a41bb1b51fe680644582051 (diff) | |
download | haskell-75291abaf6db7befbde5b4dadaea0b8047a75e06.tar.gz |
Change `OPTIONS_GHC -O` to `OPTIONS_GHC -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
Reviewed By: bgamari
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D4156
Diffstat (limited to 'compiler/iface')
-rw-r--r-- | compiler/iface/BinIface.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/iface/BinIface.hs b/compiler/iface/BinIface.hs index 8ab2310bc4..31b5af0e86 100644 --- a/compiler/iface/BinIface.hs +++ b/compiler/iface/BinIface.hs @@ -4,7 +4,7 @@ -- (c) The University of Glasgow 2002-2006 -- -{-# OPTIONS_GHC -O #-} +{-# OPTIONS_GHC -O2 #-} -- We always optimise this, otherwise performance of a non-optimised -- compiler is severely affected |