Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,253
Issues
4,253
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
394
Merge Requests
394
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
190c555e
Commit
190c555e
authored
Aug 03, 2012
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix warning
parent
7db26e00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
compiler/cmm/CmmSink.hs
compiler/cmm/CmmSink.hs
+2
-2
No files found.
compiler/cmm/CmmSink.hs
View file @
190c555e
...
...
@@ -316,7 +316,7 @@ tryToInline live node assigs = go usages node [] assigs
usages
::
UniqFM
Int
usages
=
foldRegsUsed
addUsage
emptyUFM
node
go
_usages
node
skipped
[]
=
(
node
,
[]
)
go
_usages
node
_
skipped
[]
=
(
node
,
[]
)
go
usages
node
skipped
(
a
@
(
l
,
rhs
,
_
)
:
rest
)
|
can_inline
=
inline_and_discard
...
...
@@ -373,7 +373,7 @@ addUsage :: UniqFM Int -> LocalReg -> UniqFM Int
addUsage
m
r
=
addToUFM_C
(
+
)
m
r
1
regsUsedIn
::
[
LocalReg
]
->
CmmExpr
->
Bool
regsUsedIn
[]
e
=
False
regsUsedIn
[]
_
=
False
regsUsedIn
ls
e
=
wrapRecExpf
f
e
False
where
f
(
CmmReg
(
CmmLocal
l
))
_
|
l
`
elem
`
ls
=
True
f
(
CmmRegOff
(
CmmLocal
l
)
_
)
_
|
l
`
elem
`
ls
=
True
...
...
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