This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]