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] Use REG_EQUAL with -fvpt


Hi,

Andrew Pinski <pinskia@physics.uc.edu> writes:

> +  /* Find the reg_note if there is one. */
> +  for (reg_equiv = REG_NOTES (insn);
> +       reg_equiv;
> +       reg_equiv = XEXP (reg_equiv, 1))
> +    if (REG_NOTE_KIND (reg_equiv) == REG_EQUAL)
> +      {
> +        reg_equiv = XEXP (reg_equiv, 0);
> +        break;
> +      }
> +
> +  if (reg_equiv)
> +    set_src = reg_equiv;

This snippet is repeated thrice in this patch, suggesting a helper
function

  reg_equiv = reg_notes_find (insn, REG_EQUAL);

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu


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