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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
> The way aarch64 implements its _rtx_costs is that it cases SET and if the
> LHS is a mem, then it is the cost of the store there and returns true
> (though you might need to take into RHS if it can be more than just a
> register like). And then MEM includes the cost of the load.

i386 does something similar too.

Reply via email to