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] Turn constant vector CONSTRUCTORs to VECTOR_CSTs


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


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