Commit f20b0d8a authored by Ben.Lippmeier@anu.edu.au's avatar Ben.Lippmeier@anu.edu.au
Browse files

Don't try and coalesce RealReg->RealReg moves

parent f9288086
......@@ -311,9 +311,13 @@ graphAddCoalesce (r1, r2) graph
(vr2, classOfVirtualReg vr2)
graph
| otherwise
= panic "RegAlloc.Graph.Main.graphAddCoalesce: can't coalesce two real regs"
-- We can't coalesce two real regs, but there could well be existing
-- hreg,hreg moves in the input code. We'll just ignore these
-- for coalescing purposes.
| RegReal _ <- r1
, RegReal _ <- r2
= graph
-- | Patch registers in code using the reg -> reg mapping in this graph.
patchRegsFromGraph
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment