perf: add ghc 9.12 options -fexpose-overloaded-unfoldings -fspecialise-aggressively
Before 9.12.1 it was necessary to mark functions as INLINABLE or INLINE to make GHC consider cross-module specialization of polymorphic functions. 9.12 added a new -fexpose-overloaded-unfoldings flag that exposes optimized polymorphic functions in interface files. -fspecialise-aggressively then makes GHC apply aggresive specialization.
This commit is contained in:
committed by
Taimoor Zaeem
parent
9048332b0e
commit
9f97147cc3
+3
-1
@@ -177,7 +177,9 @@ library
|
||||
if flag(hpc)
|
||||
ghc-options: -fhpc -hpcdir .hpc
|
||||
else
|
||||
ghc-options: -O2
|
||||
ghc-options: -O2
|
||||
if impl(ghc >= 9.12)
|
||||
ghc-options: -fexpose-overloaded-unfoldings -fspecialise-aggressively
|
||||
|
||||
if !os(windows)
|
||||
build-depends:
|
||||
|
||||
Reference in New Issue
Block a user