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
62514f77
Commit
62514f77
authored
26 years ago
by
Simon Peyton Jones
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-01-28 09:43:38 by simonpj]
Fix lost specialisations; a one-char change in Simplify.lhs
parent
b70e2f94
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ghc/compiler/simplCore/OccurAnal.lhs
+1
-1
1 addition, 1 deletion
ghc/compiler/simplCore/OccurAnal.lhs
ghc/compiler/simplCore/Simplify.lhs
+5
-5
5 additions, 5 deletions
ghc/compiler/simplCore/Simplify.lhs
with
6 additions
and
6 deletions
ghc/compiler/simplCore/OccurAnal.lhs
+
1
−
1
View file @
62514f77
...
...
@@ -23,7 +23,7 @@ import CmdLineOpts ( SimplifierSwitch(..) )
import CoreSyn
import CoreUtils ( exprIsTrivial, idSpecVars )
import Const ( Con(..), Literal(..) )
import Id ( idWantsToBeINLINEd,
import Id ( idWantsToBeINLINEd,
isSpecPragmaId,
getInlinePragma, setInlinePragma,
omitIfaceSigForId,
getIdSpecialisation,
...
...
This diff is collapsed.
Click to expand it.
ghc/compiler/simplCore/Simplify.lhs
+
5
−
5
View file @
62514f77
...
...
@@ -758,7 +758,7 @@ completeBindNonRec bndr rhs thing_inside
simplPrags bndr bndr' etad_rhs `thenSmpl` \ bndr'' ->
modifyInScope bndr'' $
thing_inside `thenSmpl` \ stuff ->
returnSmpl (addBind (NonRec bndr' etad_rhs) stuff)
returnSmpl (addBind (NonRec bndr'
'
etad_rhs) stuff)
where
etad_rhs = etaCoreExpr rhs
...
...
@@ -774,12 +774,12 @@ simplPrags old_bndr new_bndr new_rhs
= returnSmpl (bndr_w_unfolding)
| otherwise
= pprTrace "simplPrags" (ppr old_bndr) $
getSimplBinderStuff `thenSmpl` \ (ty_subst, id_subst, in_scope, us) ->
= getSimplBinderStuff `thenSmpl` \ (ty_subst, id_subst, in_scope, us) ->
let
spec_env' = substSpecEnv ty_subst in_scope (subst_val id_subst) spec_env
spec_env' = substSpecEnv ty_subst in_scope (subst_val id_subst) spec_env
final_bndr = bndr_w_unfolding `setIdSpecialisation` spec_env'
in
returnSmpl
(bndr_w_unfolding `setIdSpecialisation` spec_env')
returnSmpl
final_bndr
where
bndr_w_unfolding = new_bndr `setIdUnfolding` mkUnfolding new_rhs
...
...
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