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

--- Comment #22 from mateuszb at poczta dot onet.pl ---
(In reply to David Faust from comment #16)
> It should not be difficult, but it's an enhancement so I'd rather not mix it
> with the wrong-code fixes in this PR. I've added a note as a todo in the
> BPFBackEnd wiki page for now.

In file gcc/avoid-store-forwarding.cc there is a function
bool store_forwarding_analyzer::
is_store_forwarding (rtx store_mem, rtx load_mem, HOST_WIDE_INT *off_val)
which is quite useful in memmove case. We could use the code (strip_offset,
rtx_equal_p, off_diff.is_constant) to improve memmove.

Reply via email to