https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70048

--- Comment #15 from Wilco <wdijkstr at arm dot com> ---
(In reply to Richard Biener from comment #14)
> The regression in the original description looks severe enough to warrant
> some fixing even if regressing some other cases.

Agreed, I think the improvement from Richard H's "2nd patch" outweighs the
regression shown in comment 11. Assuming it benchmarks OK, for GCC6 that seems
the best we can do.

It is is unlikely that legitimize_address could ever be used improve addressing
of multiple arrays. The arrays must both be small and allocated close together
for this to be beneficial, and that is something you don't know in advance, let
alone could decide in a callback that only sees one address at a time. So that
requires a different approach.

Reply via email to