A question about subsumption in register allocators

Thomas Johnsson <johnsson@cs.chalmers.se>
Mon, 8 Apr 91 14:34:39 +0200

          From comp.compilers

Related articles
A question about subsumption in register allocators johnsson@cs.chalmers.se (Thomas Johnsson) (1991-04-08)
Re: A question about subsumption in register allocators preston@ariel.rice.edu (1991-04-12)
| List of all articles for this month |

Newsgroups: comp.compilers
From: Thomas Johnsson <johnsson@cs.chalmers.se>
Keywords: optimize, registers question
Organization: Compilers Central
Date: Mon, 8 Apr 91 14:34:39 +0200

A have a question about the use of register subsumtion in practical
graph coloring register allocators.


Before the actual coloring, subsumption is normally done, to remove
unnecessary copy operations, and to make the graph to be coloured
smaller.


No the question is: What do register allocators out there do if there
is more than one way of doing the subsumption, and they are mutually
incompatible?


{ define a }
if ... then
x := a
...
else
y := a
...
fi
{ use x, y }


Assuming there is no conflict between x and a, or y and a, but there
is a conflict between x and y, then we have a choice in merging either x
and a, or y and a.
So how do register allocators out there make the choice?


-- Thomas Johnsson
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.