This is the mail archive of the gcc-bugs@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]

[Bug optimization/13191] [64bit] Redundant sign extends


------- Additional Comments From kazu at cs dot umass dot edu  2004-03-03 23:41 -------
I've implemented an ad hoc rule in tree-ssa like so:  Given

b = (type1) a;
c = (type2) b;

I try to eliminate b if b is dead and I can say "c = (type3) a".
It turns out at the end of tree-ssa optimizations, I seem to get two variables
containing the essentially same value, just in different types.

So, yes, the placement is important.  I'm reading the paper Falk pointed.


-- 


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


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