This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Prepare for constant folder canonicalizations
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Mar 2011 09:04:01 -0700
- Subject: Re: [PATCH] Prepare for constant folder canonicalizations
- References: <alpine.LNX.2.00.1103161232320.25982@zhemvz.fhfr.qr>
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.