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]

Re: RFC -- update_equiv_regs and friends


> function_invariant_p handled this just fine.  Why did you switch to
> ! rtx_varies_p ?

rtx_varies_p also handles it fine but for the LO_SUM issue.  Perhaps
we just should extend Bernd's hack to rtx_varies_p in the following
fashion:

    case LO_SUM:
      /* The operand 0 of a LO_SUM is considered constant
         (in fact is it related specifically to operand 1)
         during alias analysis.  */
      if (! for_alias && rtx_varies_p (XEXP (x, 0), for_alias))
        return 1;
      return rtx_varies_p (XEXP (x, 1), for_alias);

-- John
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------


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