add inline to copy_within#148345
Conversation
|
Does the assembly contain calls to |
It contains calls to Here's an example for both cases, the fixed 18bytes version does not contain a call to |
|
If your assembly does not include calls to copy_within, then this seems unlikely to help. It's also not that important because as a generic function, it's already eligible for inlining, so the attribute merely slightly adjusts heuristics. Have you checked that this PR helps? |
|
@rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
|
@PSeitz Hi, ping from triage team. This PR has been inactive for a while. Are there any updates on this? Thanks |
Yes, I've seen that the memmov call disappeared with this change. I'm not sure why though, since we have generics on this function. I think maybe because of the |
In lz4_flex a fixed size parameter is used to
copy_withinto avoid calls to libc memmove.However, I can see in the call stack still see calls to libc. I think it's because of the missing
inline.It's using the equivalent of this:
https://godbolt.org/z/cKqYYvKbT
(in this example
copy_withinis getting inlined)