Recording predicate information in all rtl gen* programs

Richard Sandiford richard.sandiford@linaro.org
Tue Apr 12 15:01:00 GMT 2011


"H.J. Lu" <hjl.tools@gmail.com> writes:
> I think your patch caused:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48573

Sorry, this didn't show up on pure x86_64.  It was caused by the
optabs.c patch rather than this one.  I've reverted it for now.

One fix would be:

  /* If the operand is a memory, try forcing the address into a register.  */
  if (MEM_P (op->value)
      && GET_RTX_CLASS (GET_CODE (XEXP (op->value, 0))) != RTX_AUTOINC
      && insn_data[(int) icode].operand[opno].allows_mem)

I think all other addresses really can be forced into registers.

Richard



More information about the Gcc-patches mailing list