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
Alex D
GHC
Commits
d5938fb2
Commit
d5938fb2
authored
Sep 13, 2007
by
Ben.Lippmeier@anu.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warning police
parent
220a12e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
compiler/nativeGen/RegAllocColor.hs
compiler/nativeGen/RegAllocColor.hs
+0
-1
compiler/utils/GraphColor.hs
compiler/utils/GraphColor.hs
+1
-2
No files found.
compiler/nativeGen/RegAllocColor.hs
View file @
d5938fb2
...
...
@@ -126,7 +126,6 @@ regAlloc_spin dflags (spinCount :: Int) triv regsFree slotsFree debug_codeGraphs
=
{-# SCC "ColorGraph" #-}
Color
.
colorGraph
(
dopt
Opt_RegsIterative
dflags
)
spinCount
regsFree
triv
spill
graph
-- rewrite regs in the code that have been coalesced
...
...
compiler/utils/GraphColor.hs
View file @
d5938fb2
...
...
@@ -39,7 +39,6 @@ colorGraph
,
Eq
color
,
Eq
cls
,
Ord
k
,
Outputable
k
,
Outputable
cls
,
Outputable
color
)
=>
Bool
-- ^ whether to do iterative coalescing
->
Int
-- ^ how many times coloring has been called so far
->
UniqFM
(
UniqSet
color
)
-- ^ map of (node class -> set of colors available for this class).
->
Triv
k
cls
color
-- ^ fn to decide whether a node is trivially colorable.
->
(
Graph
k
cls
color
->
k
)
-- ^ fn to choose a node to potentially leave uncolored if nothing is trivially colorable.
...
...
@@ -50,7 +49,7 @@ colorGraph
,
UniqFM
k
)
-- map of regs (r1 -> r2) that were coaleced
-- r1 should be replaced by r2 in the source
colorGraph
iterative
spinCount
colors
triv
spill
graph0
colorGraph
iterative
colors
triv
spill
graph0
=
let
-- If we're not doing iterative coalescing then just do a conservative
-- coalescing stage at the front.
...
...
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