From 75291abaf6db7befbde5b4dadaea0b8047a75e06 Mon Sep 17 00:00:00 2001 From: Douglas Wilson Date: Thu, 9 Nov 2017 17:54:45 -0500 Subject: 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 --- compiler/utils/FastString.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/utils/FastString.hs') diff --git a/compiler/utils/FastString.hs b/compiler/utils/FastString.hs index fde4ff01de..f16b32779f 100644 --- a/compiler/utils/FastString.hs +++ b/compiler/utils/FastString.hs @@ -2,7 +2,7 @@ {-# LANGUAGE BangPatterns, CPP, MagicHash, UnboxedTuples, GeneralizedNewtypeDeriving #-} -{-# 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 -- cgit v1.2.1