On Tue, May 10, 2011 at 2:55 AM, Richard Guenther <rguent...@suse.de> wrote: > > This moves fold-consts conversion folding to forwprop, our tree > pattern matcher & optimizer. In addition to what fold-const > does this makes us canonicalize unsigned truncations to use > bitwise and of a mask, this form is more readily handled by > passes like VRP and this also makes it easier to combine with > existing bitwise operations (or thise I will introduce with > bitfield lowering which this patch incidentially will be > required for). > > Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. > > Richard. > > 2011-05-10 Richard Guenther <rguent...@suse.de> > > * tree-ssa-forwprop.c (combine_conversions): Pattern-match > a series of conversions and apply foldings similar to what > fold-const does. > (tree_ssa_forward_propagate_single_use_vars): Call it. >
This caused: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50176 -- H.J.