Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
95686360
Commit
95686360
authored
Aug 02, 2012
by
Simon Marlow
Browse files
No need to do removeDeadAssignments, just do cmmLiveness instead
parent
325f2f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/cmm/CmmLayoutStack.hs
View file @
95686360
...
...
@@ -110,7 +110,13 @@ cmmLayoutStack dflags procpoints entry_args
graph0
@
(
CmmGraph
{
g_entry
=
entry
})
=
do
-- pprTrace "cmmLayoutStack" (ppr entry_args) $ return ()
(
graph
,
liveness
)
<-
removeDeadAssignments
graph0
-- We need liveness info. We could do removeDeadAssignments at
-- the same time, but it buys nothing over doing cmmSink later,
-- and costs a lot more than just cmmLiveness.
-- (graph, liveness) <- removeDeadAssignments graph0
let
(
graph
,
liveness
)
=
(
graph0
,
cmmLiveness
graph0
)
-- pprTrace "liveness" (ppr liveness) $ return ()
let
blocks
=
postorderDfs
graph
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment