On Mon, 2006-10-23 at 16:14 +0530, Rohit Arul Raj wrote: > Hi all, > > This small bit of code worked fine with all optimization except Os.
If you are working with 4.0 and greater, there are optimizations that happen before RTL, called the Tree-ssa optimizations. The optimization you are noticing here is called forward propagation. Thanks, Andrew Pinski