On Wed, Mar 16, 2011 at 4:34 AM, Richard Guenther <rguent...@suse.de> wrote: > > This prepares things to share constant folding between passes > (CCP, FRE and VRP). It simplifies maybe_fold_reference making > sure to first canonicalize MEM_REFs and then call other folders. > > Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. > > Richard. > > 2011-03-16 Richard Guenther <rguent...@suse.de> > > * gimple-fold.c (maybe_fold_reference): Open-code relevant > constant folding. Move MEM_REF canonicalization first. > Rely on fold_const_aggregate_ref for initializer folding. > * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts. > > * gcc.dg/tree-ssa/pr14814.c: Adjust. > * gcc.dg/tree-ssa/ssa-ccp-19.c: Likewise. >
This caused: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48150 -- H.J.