------- Comment #3 from ramana dot r at gmail dot com  2009-03-15 22:59 -------
(In reply to comment #2)
> Trying to deal with this on the tree level will certainly be the wrong thing. 
> A
> target dependent pass should instead try to re-materialize code to generate
> constants from existing ones.
> 

I suspect it would be a cost based thing with costs from the target especially
for such targets. It might also help in cases involving symbol references
similar to the one in the patch proposed here. 

http://gcc.gnu.org/ml/gcc-patches/2009-03/msg00158.html

This is still a CSE pass but this might help in a global context as well.


-- 


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

Reply via email to