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] make vector CONSTRUCTOR with TREE_CONSTANT true, min invariant


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


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