This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Prepare for constant folder canonicalizations


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]