Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
29e9a63f
Commit
29e9a63f
authored
Oct 29, 2009
by
simonpj@microsoft.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add static flag -funfolding-dict-discount (plus layout changes)
parent
c7517d84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
compiler/main/StaticFlags.hs
compiler/main/StaticFlags.hs
+11
-9
No files found.
compiler/main/StaticFlags.hs
View file @
29e9a63f
...
...
@@ -51,6 +51,7 @@ module StaticFlags (
opt_UF_CreationThreshold
,
opt_UF_UseThreshold
,
opt_UF_FunAppDiscount
,
opt_UF_DictDiscount
,
opt_UF_KeenessFactor
,
opt_UF_DearOp
,
...
...
@@ -251,17 +252,18 @@ opt_SimplExcessPrecision :: Bool
opt_SimplExcessPrecision
=
lookUp
(
fsLit
"-fexcess-precision"
)
-- Unfolding control
opt_UF_CreationThreshold
::
Int
opt_UF_CreationThreshold
=
lookup_def_int
"-funfolding-creation-threshold"
(
45
::
Int
)
opt_UF_UseThreshold
::
Int
opt_UF_UseThreshold
=
lookup_def_int
"-funfolding-use-threshold"
(
6
::
Int
)
-- Discounts can be big
opt_UF_FunAppDiscount
::
Int
opt_UF_FunAppDiscount
=
lookup_def_int
"-funfolding-fun-discount"
(
6
::
Int
)
-- It's great to inline a fn
-- See Note [Discounts and thresholds] in CoreUnfold
opt_UF_CreationThreshold
,
opt_UF_UseThreshold
::
Int
opt_UF_DearOp
,
opt_UF_FunAppDiscount
,
opt_UF_DictDiscount
::
Int
opt_UF_KeenessFactor
::
Float
opt_UF_KeenessFactor
=
lookup_def_float
"-funfolding-keeness-factor"
(
1.5
::
Float
)
opt_UF_DearOp
::
Int
opt_UF_DearOp
=
(
4
::
Int
)
opt_UF_CreationThreshold
=
lookup_def_int
"-funfolding-creation-threshold"
(
45
::
Int
)
opt_UF_UseThreshold
=
lookup_def_int
"-funfolding-use-threshold"
(
6
::
Int
)
opt_UF_FunAppDiscount
=
lookup_def_int
"-funfolding-fun-discount"
(
6
::
Int
)
opt_UF_DictDiscount
=
lookup_def_int
"-funfolding-dict-discount"
(
1
::
Int
)
opt_UF_KeenessFactor
=
lookup_def_float
"-funfolding-keeness-factor"
(
1.5
::
Float
)
opt_UF_DearOp
=
(
4
::
Int
)
-- Related to linking
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment