[PATCH] Fix if (cond) x = a -> x = cond ? a : x conversion (PR rtl-optimization/23567)

Richard Henderson rth@redhat.com
Fri Nov 4 23:08:00 GMT 2005


On Fri, Nov 04, 2005 at 08:40:41AM -0500, Jakub Jelinek wrote:
> +  if (MEM_READONLY_P (mem))
> +    return true;
> +
> +  if (may_trap_or_fault_p (mem))
> +    return true;
> +
> +  addr = XEXP (mem, 0);

You might be able to delegitimize the address here to handle pic.

Otherwise I guess this is ok.


r~



More information about the Gcc-patches mailing list