This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Fix PR rtl-optimization/27616
Eric Botcazou <ebotcazou@libertysurf.fr> writes:
> > While this is obviously a very unusual test case, I think that you
> > have set the cap much too high. I can't imagine a case which would
> > successfully simplify after even four recursive calls to fold_rtx_mem.
>
> Where do you draw the 4 from? I see no theoritical limit to the scheme, just
> chain
>
> set (reg[n+1])
> (plus (reg)
> (mem (plus (reg[n]) (const_int))))
>
> and stop somewhere.
I'm sure I'm missing something, but if that comes from real code, then
how is it going to simplify?
Ian