|Newbie SSA question Kevin.Tucker@Microchip.com (2001-01-26)|
|Re: Newbie SSA question firstname.lastname@example.org (Bob Morgan) (2001-02-01)|
|Re: Newbie SSA question email@example.com (Anthony PIRON) (2001-02-01)|
|Re: Newbie SSA question Martin.Ward@durham.ac.uk (2001-02-01)|
|Re: Newbie SSA question firstname.lastname@example.org (2001-02-12)|
|From:||Martin.Ward@durham.ac.uk (Martin Ward)|
|Date:||1 Feb 2001 17:39:34 -0500|
|Posted-Date:||01 Feb 2001 17:39:34 EST|
Kevin Tucker (Kevin.Tucker@Microchip.com) writes:
> The question is, when converting to SSA form, are you actually
> allocating new variables for each assignment, or are you just "renaming"
> them for notational purposes?.
If you simply convert to SSA and then back again, then it doesn't matter
which you do. But you usually convert to SSA form in order to do some
further optimisations, in which case you can't necessarily just
"drop the subscripts" to convert back. Translate the phi functions
to a set of assignments (one on each incoming egde) and then do
register allocation to eliminate the extra moves. See Section 19.6
of "Modern Compiler Implementation in C" by Andrew W. Appel.
Martin.Ward@durham.ac.uk http://www.dur.ac.uk/martin.ward/ Erdos number: 4
G.K.Chesterton web site: http://www.dur.ac.uk/martin.ward/gkc/
Shortcuts: http://i.am/mw and http://i.am/gkc -- try them!
I am boycotting Amazon. See http://www.gnu.org/philosophy/amazon.html for why.
Return to the
Search the comp.compilers archives again.