Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Michael Sloan
GHC
Commits
9cc6a182
Commit
9cc6a182
authored
Mar 26, 2018
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
White space only
parent
71d50db1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
compiler/simplCore/OccurAnal.hs
compiler/simplCore/OccurAnal.hs
+4
-0
No files found.
compiler/simplCore/OccurAnal.hs
View file @
9cc6a182
...
...
@@ -2724,14 +2724,18 @@ decideJoinPointHood NotTopLevel usage bndrs
ok
bndr
|
-- Invariant 1: Only tail calls, all same join arity
AlwaysTailCalled
arity
<-
tailCallInfo
(
lookupDetails
usage
bndr
)
,
-- Invariant 1 as applied to LHSes of rules
all
(
ok_rule
arity
)
(
idCoreRules
bndr
)
-- Invariant 2a: stable unfoldings
-- See Note [Join points and INLINE pragmas]
,
ok_unfolding
arity
(
realIdUnfolding
bndr
)
-- Invariant 4: Satisfies polymorphism rule
,
isValidJoinPointType
arity
(
idType
bndr
)
=
True
|
otherwise
=
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment