Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
9f7cd13b
Commit
9f7cd13b
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-05-19 00:09:07 by sof]
new PP;2.0x bootable
parent
8abfac82
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/simplCore/FloatOut.lhs
+10
-9
10 additions, 9 deletions
ghc/compiler/simplCore/FloatOut.lhs
with
10 additions
and
9 deletions
ghc/compiler/simplCore/FloatOut.lhs
+
10
−
9
View file @
9f7cd13b
...
...
@@ -16,18 +16,19 @@ IMPORT_1_3(List(partition))
import CoreSyn
import CmdLineOpts ( opt_D_verbose_core2core, opt_D_simplifier_stats )
import CostCentre ( dupifyCC )
import CostCentre ( dupifyCC
, CostCentre
)
import Id ( nullIdEnv, addOneToIdEnv, growIdEnvList, SYN_IE(IdEnv),
GenId{-instance Outputable-}
GenId{-instance Outputable-}
, SYN_IE(Id)
)
import Outputable ( Outputable(..){-instance (,)-} )
import PprCore
import PprStyle ( PprStyle(..) )
import PprType ( GenTyVar )
import Pretty (
ppInt, ppPStr, ppBesides, ppAboves
)
import Pretty (
Doc, int, ptext, hcat, vcat
)
import SetLevels -- all of it
import TyVar ( GenTyVar{-instance Eq-} )
import TyVar ( GenTyVar{-instance Eq-}
, SYN_IE(TyVar)
)
import Unique ( Unique{-instance Eq-} )
import UniqSupply ( UniqSupply )
import Usage ( SYN_IE(UVar) )
import Util ( pprTrace, panic )
\end{code}
...
...
@@ -96,7 +97,7 @@ floatOutwards us pgm
(if opt_D_verbose_core2core
then pprTrace "Levels added:\n"
(
ppAboves
(map (ppr PprDebug) annotated_w_levels))
(
vcat
(map (ppr PprDebug) annotated_w_levels))
else id
)
( if not (opt_D_simplifier_stats) then
...
...
@@ -105,10 +106,10 @@ floatOutwards us pgm
let
(tlets, ntlets, lams) = get_stats (sum_stats fss)
in
pprTrace "FloatOut stats: " (
ppBesides
[
ppI
nt tlets, p
pPStr
SLIT(" Lets floated to top level; "),
ppI
nt ntlets, p
pPStr
SLIT(" Lets floated elsewhere; from "),
ppI
nt lams, p
pPStr
SLIT(" Lambda groups")])
pprTrace "FloatOut stats: " (
hcat
[
i
nt tlets, p
text
SLIT(" Lets floated to top level; "),
i
nt ntlets, p
text
SLIT(" Lets floated elsewhere; from "),
i
nt lams, p
text
SLIT(" Lambda groups")])
)
concat final_toplev_binds_s
}}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment