This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] make vector CONSTRUCTOR with TREE_CONSTANT true, min invariant
- From: Ian Lance Taylor <iant at google dot com>
- To: Andrew Pinski <pinskia at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 19 Dec 2006 18:57:44 -0800
- Subject: Re: [PATCH] make vector CONSTRUCTOR with TREE_CONSTANT true, min invariant
- References: <1166506743.26416.14.camel@celery.andrew.com>
Andrew Pinski <pinskia@gmail.com> writes:
> We should treat vector CONSTRUCTOR with TREE_CONSTANT set as min
> invariant since we no longer look into them to gimplify them and they
> are constants so we should be able to treat them as such now.
gimplify_init_constructor in gimplify.c finds it necessary to check
each value. It seems to me that code like would be required here,
too. Which may make it inappropriate.
In general it seems to me that we should find some way to pass these
CONSTRUCTORs to build_vector_from_ctor. It doesn't seem reasonable to
try to work around the fact that we don't do that.
Ian