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

--- Comment #5 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to amker from comment #4)
> 
> We saw similar problems on arm too.  Problem is IVOPT's model doesn't know
> the detail of target addressing mode.  This is should be fixed by improving
> function get_address_cost, but that's just difficult to expose every target
> details to middle end, especially we need to keep it simple and fast.

I'm trying to make some progress on PR 56590, that's how I noticed this issue
here in the first place.  These kind of issues could be fixed up by an AMS pass
since it will have to know all the details about target address modes and
costs.  E.g. turning the first access in the loop into a post-inc would fix
this particular case.

Reply via email to