summaryrefslogtreecommitdiff
path: root/compiler/iface/BinIface.hs
diff options
context:
space:
mode:
authorDouglas Wilson <douglas.wilson@gmail.com>2017-11-09 17:54:45 -0500
committerBen Gamari <ben@smart-cactus.org>2017-11-09 18:31:22 -0500
commit75291abaf6db7befbde5b4dadaea0b8047a75e06 (patch)
tree30097dc06477b45973abbaf7c11af16b983cddb6 /compiler/iface/BinIface.hs
parente6b13c963d0b54099a41bb1b51fe680644582051 (diff)
downloadhaskell-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/BinIface.hs')
-rw-r--r--compiler/iface/BinIface.hs2
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