[PATCH] Turn constant vector CONSTRUCTORs to VECTOR_CSTs

Andrew Pinski pinskia@gmail.com
Tue May 26 15:11:00 GMT 2009


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



More information about the Gcc-patches mailing list