[PATCH] Prepare for constant folder canonicalizations
H.J. Lu
hjl.tools@gmail.com
Wed Mar 16 16:04:00 GMT 2011
On Wed, Mar 16, 2011 at 4:34 AM, Richard Guenther <rguenther@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 <rguenther@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.
More information about the Gcc-patches
mailing list