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: [RFC] [tree-ssa] Fix handling of BIT_FIELD_REFs and VECTOR_TYPEs


> > Fortunately, this is easy to do: do all your operations and then
construct
> > the new value all at once with a_6 = CONSTRUCTOR (t_5, t_6, t_7, t_8).
>
> Hmm.  I may have lied here.  I do think that this is the right
> representation, but we'll need to modify get_expr_operands in
> order to make this work; at present constructors are only
> present in gimple as vector constants.

Does this mean I'm misusing the constructor in the way I support
vectorization of loop invariants (
http://gcc.gnu.org/ml/gcc-patches/2004-03/msg01724.html)? - I'm using a
CONSTRUCTOR to initialize a vector with values that are not constants:
          for (i = nunits - 1; i >= 0; --i)
            {
              t = tree_cons (NULL_TREE, def, t);
            }

          vec_inv = build_constructor (vectype, t); /* CHECKME */

where def is an SSA_NAME.

thanks,
dorit



                                                                                                                                    
                      Richard Henderson                                                                                             
                      <rth@redhat.com>          To:       bonzini@gnu.org, gcc-patches@gcc.gnu.org                                  
                      Sent by:                  cc:                                                                                 
                      gcc-patches-owner@        Subject:  Re: [RFC] [tree-ssa] Fix handling of BIT_FIELD_REFs and VECTOR_TYPEs      
                      gcc.gnu.org                                                                                                   
                                                                                                                                    
                                                                                                                                    
                      22/03/2004 23:41                                                                                              
                                                                                                                                    




On Mon, Mar 22, 2004 at 01:36:01PM -0800, Richard Henderson wrote:
> Fortunately, this is easy to do: do all your operations and then
construct
> the new value all at once with a_6 = CONSTRUCTOR (t_5, t_6, t_7, t_8).

Hmm.  I may have lied here.  I do think that this is the right
representation, but we'll need to modify get_expr_operands in
order to make this work; at present constructors are only
present in gimple as vector constants.


r~




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