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
4d355aed
Commit
4d355aed
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-05-18 23:17:25 by sof]
2.0x bootable
parent
322ffb93
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ghc/compiler/simplStg/UpdAnal.lhs
+2
-0
2 additions, 0 deletions
ghc/compiler/simplStg/UpdAnal.lhs
ghc/compiler/specialise/SpecEnv.lhs
+3
-3
3 additions, 3 deletions
ghc/compiler/specialise/SpecEnv.lhs
with
5 additions
and
3 deletions
ghc/compiler/simplStg/UpdAnal.lhs
+
2
−
0
View file @
4d355aed
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
>
>
>
IMP_Ubiq
()
{-uitous-}
>
IMP_Ubiq
()
{-uitous-}
>
>
>
import
Prelude
hiding
(
lookup
)
>
>
import
StgSyn
>
import
StgSyn
>
import
Id
(
SYN_IE
(
IdEnv
),
growIdEnv
,
addOneToIdEnv
,
combineIdEnvs
,
nullIdEnv
,
>
import
Id
(
SYN_IE
(
IdEnv
),
growIdEnv
,
addOneToIdEnv
,
combineIdEnvs
,
nullIdEnv
,
> unitIdEnv, mkIdEnv, rngIdEnv, lookupIdEnv,
> unitIdEnv, mkIdEnv, rngIdEnv, lookupIdEnv,
...
...
This diff is collapsed.
Click to expand it.
ghc/compiler/specialise/SpecEnv.lhs
+
3
−
3
View file @
4d355aed
...
@@ -15,7 +15,7 @@ module SpecEnv (
...
@@ -15,7 +15,7 @@ module SpecEnv (
IMP_Ubiq()
IMP_Ubiq()
import MatchEnv
import MatchEnv
import Type ( matchTys, isTyVarTy )
import Type
--
( matchTys, isTyVarTy )
import Usage ( SYN_IE(UVar) )
import Usage ( SYN_IE(UVar) )
import OccurAnal ( occurAnalyseGlobalExpr )
import OccurAnal ( occurAnalyseGlobalExpr )
import CoreSyn ( SYN_IE(CoreExpr), SYN_IE(SimplifiableCoreExpr) )
import CoreSyn ( SYN_IE(CoreExpr), SYN_IE(SimplifiableCoreExpr) )
...
@@ -27,7 +27,7 @@ import Maybes ( MaybeErr(..) )
...
@@ -27,7 +27,7 @@ import Maybes ( MaybeErr(..) )
--import Pretty--ToDo:rm
--import Pretty--ToDo:rm
--import PprCore--ToDo:rm
--import PprCore--ToDo:rm
--import Id--ToDo:rm
--import Id--ToDo:rm
--
import TyVar--ToDo:rm
import TyVar
--ToDo:rm
--import Unique--ToDo:rm
--import Unique--ToDo:rm
--import IdInfo--ToDo:rm
--import IdInfo--ToDo:rm
--import PprEnv--ToDo:rm
--import PprEnv--ToDo:rm
...
@@ -79,7 +79,7 @@ isNullSpecEnv (SpecEnv env) = null (mEnvToList env)
...
@@ -79,7 +79,7 @@ isNullSpecEnv (SpecEnv env) = null (mEnvToList env)
addOneToSpecEnv :: SpecEnv -> [Type] -> CoreExpr -> MaybeErr SpecEnv ([Type], SimplifiableCoreExpr)
addOneToSpecEnv :: SpecEnv -> [Type] -> CoreExpr -> MaybeErr SpecEnv ([Type], SimplifiableCoreExpr)
addOneToSpecEnv (SpecEnv env) tys rhs
addOneToSpecEnv (SpecEnv env) tys rhs
= --pprTrace "addOneToSpecEnv" (
ppAbove
(ppr PprDebug tys) (ppr PprDebug rhs)) $
= --pprTrace "addOneToSpecEnv" (
($$)
(ppr PprDebug tys) (ppr PprDebug rhs)) $
case (insertMEnv matchTys env tys (occurAnalyseGlobalExpr rhs)) of
case (insertMEnv matchTys env tys (occurAnalyseGlobalExpr rhs)) of
Succeeded menv -> Succeeded (SpecEnv menv)
Succeeded menv -> Succeeded (SpecEnv menv)
Failed err -> Failed err
Failed err -> Failed err
...
...
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