This is the mail archive of the gcc@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: Question on scalar replacement


On Mon, 2004-06-14 at 08:55, Richard Kenner wrote:

> The RHS is a call, so it calls scalarize_call_expr.  This seems to look
> inside the args, but only check the RHS for is_sra_candidate_decl.  From
> other code, it looks like checking is_sra_candidate_ref seems correct.
>
Do we get inside this if() statement in scalarize_call_expr()?

      /* If the LHS of the assignment is a scalarizable structure, insert
         copies into the scalar replacements after the call.  */
      if (is_sra_candidate_decl (var))
        {
          tree list = create_scalar_copies (var, var, SCALAR_FIELD);
	....

If so, after we call create_scalar_copies, does LIST look OK?  (Do 'pgs
list' in gdb).


Diego.


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