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
db679452
Commit
db679452
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-05-18 23:29:59 by sof]
new PP;2.0x bootable
parent
9015d170
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/simplCore/SimplPgm.lhs
+14
-10
14 additions, 10 deletions
ghc/compiler/simplCore/SimplPgm.lhs
with
14 additions
and
10 deletions
ghc/compiler/simplCore/SimplPgm.lhs
+
14
−
10
View file @
db679452
...
...
@@ -11,7 +11,7 @@ module SimplPgm ( simplifyPgm ) where
IMP_Ubiq(){-uitous-}
import CmdLineOpts ( opt_D_verbose_core2core, opt_D_dump_simpl_iterations,
switchIsOn, SimplifierSwitch(..)
switchIsOn, SimplifierSwitch(..)
, SYN_IE(SwitchResult)
)
import CoreSyn
import CoreUnfold ( SimpleUnfolding )
...
...
@@ -21,16 +21,17 @@ import Id ( mkIdEnv, lookupIdEnv, SYN_IE(IdEnv),
)
import Maybes ( catMaybes )
import OccurAnal ( occurAnalyseBinds )
import Pretty ( ppAboves, ppBesides, ppInt, ppChar, ppStr, ppPStr,
ppNil
)
import Pretty ( Doc, vcat, hcat, int, char, text, ptext, empty )
import PprStyle ( PprStyle(..) ) -- added SOF
import PprCore ( pprCoreBinding ) -- added SOF
import SimplEnv
import SimplMonad
import Simplify ( simplTopBinds )
import TyVar ( nullTyVarEnv, SYN_IE(TyVarEnv) )
import UniqSupply ( thenUs, returnUs, mapUs, splitUniqSupply, SYN_IE(UniqSM) )
import UniqSupply ( thenUs, returnUs, mapUs,
splitUniqSupply, SYN_IE(UniqSM),
UniqSupply
)
import Util ( isIn, isn'tIn, removeDups, pprTrace )
\end{code}
...
...
@@ -70,13 +71,16 @@ simplifyPgm binds s_sw_chkr simpl_stats us
simplCount `thenSmpl` \ r ->
detailedSimplCount `thenSmpl` \ dr ->
let
show_status = pprTrace "Simplifer run: " (ppAboves [
ppBesides [ppPStr SLIT("iteration "), ppInt iterations, ppPStr SLIT(" out of "), ppInt max_simpl_iterations],
ppStr (showSimplCount dr),
show_status = pprTrace "Simplifer run: " (vcat [
hcat [ptext SLIT("iteration "),
int iterations,
ptext SLIT(" out of "),
int max_simpl_iterations],
text (showSimplCount dr),
if opt_D_dump_simpl_iterations then
ppAboves
(map (pprCoreBinding PprDebug) new_pgm)
vcat
(map (pprCoreBinding PprDebug) new_pgm)
else
ppNil
empty
])
in
...
...
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