summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core/Unfold.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-04-25 16:39:23 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-04-27 21:57:56 -0400
commit484a8b2dcc84d012621bdc24da8cb68ae07b159b (patch)
treeda206e5becfc91558c7e56611a7a849d485b4e4b /compiler/GHC/Core/Unfold.hs
parentdd121fa178c29a154233e95a15c755d0ca7cbdcc (diff)
downloadhaskell-484a8b2dcc84d012621bdc24da8cb68ae07b159b.tar.gz
Introduce -ddump-verbose-inlinings
Previously -ddump-inlinings and -dverbose-core2core used in conjunction would have the side-effect of dumping additional information about all inlinings considered by the simplifier. However, I have sometimes wanted this inlining information without the firehose of information produced by -dverbose-core2core. Introduce a new dump flag for this purpose.
Diffstat (limited to 'compiler/GHC/Core/Unfold.hs')
-rw-r--r--compiler/GHC/Core/Unfold.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Core/Unfold.hs b/compiler/GHC/Core/Unfold.hs
index 49a10c5a39..8de84d7a80 100644
--- a/compiler/GHC/Core/Unfold.hs
+++ b/compiler/GHC/Core/Unfold.hs
@@ -1130,7 +1130,7 @@ traceInline logger dflags inline_id str doc result
| otherwise = result
where
enable
- | dopt Opt_D_dump_inlinings dflags && dopt Opt_D_verbose_core2core dflags
+ | dopt Opt_D_dump_verbose_inlinings dflags
= True
| Just prefix <- inlineCheck dflags
= prefix `isPrefixOf` occNameString (getOccName inline_id)