diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-04-25 16:39:23 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-04-27 21:57:56 -0400 |
commit | 484a8b2dcc84d012621bdc24da8cb68ae07b159b (patch) | |
tree | da206e5becfc91558c7e56611a7a849d485b4e4b /compiler/GHC/Core | |
parent | dd121fa178c29a154233e95a15c755d0ca7cbdcc (diff) | |
download | haskell-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')
-rw-r--r-- | compiler/GHC/Core/Unfold.hs | 2 |
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) |