------- Additional Comments From amacleod at redhat dot com  2005-08-12 14:48 
-------
What exactly do you want to do here?

you've got

  int = expr
  long int = int

if you want to get rid of the copy, you would have to turn it into 
  long int = (long int)expr

which is more complicated than simple expression replacement.  

In your example, the opportunity also only exists *after* the PHIs have been
expanded, which means we are no longer in SSA form either, so the copyrename
pass isn't applicable. we'd need a new pass/hacks within out-of-ssa, or a post
pass on non-ssa trees.  Does this actually affect the code generated? I would
think the RTL optimizers should be able to handle it.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23335

Reply via email to