This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
SSA and implicit uses.
- From: Sanjiv Kumar Gupta <sanjivkumargupta at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 2 Nov 2004 06:40:35 -0800 (PST)
- Subject: SSA and implicit uses.
For statements like;
a = 0;
a++;
a++;
My compiler generates SSA form like below:
r200 = 0;
r201 = r200 + 1;
r202 = r201 + 1;
now all of r200, r201 and r202 are independent live
ranges and may get assigned different hard regs.
How can I use the m/c insns like "incr hardreg" in a
situation like this?
Do I need to generate "mov" insns before "incr"
and then get rid of them by peephole or coalescing?
How this situation is dealt with in GCC?
Thanks for any pointers.
--Sanjiv
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com