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
Environments
Terraform modules
Monitor
Incidents
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
Alexander Kaznacheev
GHC
Commits
12bbc18a
Commit
12bbc18a
authored
14 years ago
by
Simon Peyton Jones
Committed by
Ian Lynagh
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use isNonRuleLoopBreaker where possible, not isLoopBreaker
parent
db1f41ac
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
compiler/basicTypes/IdInfo.lhs
+1
-1
1 addition, 1 deletion
compiler/basicTypes/IdInfo.lhs
compiler/coreSyn/CoreUtils.lhs
+1
-1
1 addition, 1 deletion
compiler/coreSyn/CoreUtils.lhs
compiler/vectorise/Vectorise.hs
+1
-0
1 addition, 0 deletions
compiler/vectorise/Vectorise.hs
with
3 additions
and
2 deletions
compiler/basicTypes/IdInfo.lhs
+
1
−
1
View file @
12bbc18a
...
...
@@ -38,7 +38,7 @@ module IdInfo (
-- ** The OccInfo type
OccInfo(..),
isDeadOcc, isLoopBreaker,
isDeadOcc, isLoopBreaker,
isNonRuleLoopBreaker,
occInfo, setOccInfo,
InsideLam, OneBranch,
...
...
This diff is collapsed.
Click to expand it.
compiler/coreSyn/CoreUtils.lhs
+
1
−
1
View file @
12bbc18a
...
...
@@ -1391,7 +1391,7 @@ tryEtaReduce bndrs body
---------------
fun_arity fun -- See Note [Arity care]
| isLocalId fun && isLoopBreaker (idOccInfo fun) = 0
| isLocalId fun && is
NonRule
LoopBreaker (idOccInfo fun) = 0
| otherwise = idArity fun
---------------
...
...
This diff is collapsed.
Click to expand it.
compiler/vectorise/Vectorise.hs
+
1
−
0
View file @
12bbc18a
...
...
@@ -274,6 +274,7 @@ vectTopRhs recFs var expr
=
do
{
let
fvs
=
freeVars
expr
;
(
inline
,
isScalar
,
vexpr
)
<-
inBind
var
$
vectPolyExpr
(
isLoopBreaker
$
idOccInfo
var
)
recFs
fvs
-- Maybe isNonRuleLoopBreaker?
;
return
(
inline
,
isScalar
,
vectorised
vexpr
)
}
...
...
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