This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Turn constant vector CONSTRUCTORs to VECTOR_CSTs
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 May 2009 08:11:30 -0700
- Subject: Re: [PATCH] Turn constant vector CONSTRUCTORs to VECTOR_CSTs
- References: <alpine.LNX.2.00.0905261338410.4629@zhemvz.fhfr.qr>
On Tue, May 26, 2009 at 4:40 AM, Richard Guenther <rguenther@suse.de> wrote:
>
> Not turning constant vector CONSTRUCTORs to VECTOR_CSTs pervents
> constant propagation and folding in VIEW_CONVERT_EXPRs. ÂThe following
> patch teaches CCP and fold_stmt to properly do that which fixes the
> cases originating from both inlining and CCP.
>
> This makes the testcase in PR40122 constant fold properly.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
I had a patch in PR 18562 which does the same thing but in fold rather
than ccp_fold/fold_gimple_assign. It needed some update for
CONSTRUCTOR changes that happened after I created that patch.
Thanks,
Andrew Pinski