[PATCH] D88893: [SROA] Only generate memcpy if the slices is large 'enough' (WIP).

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 24 04:31:44 PDT 2020


lebedev.ri added a comment.

In D88893#2351846 <https://reviews.llvm.org/D88893#2351846>, @hiraditya wrote:

>> Instcombine also expands small (16 bytes, hardcoded) memcpy's
>
> Will it help to schedule another instcombine after SROA, or put SROA before an existing instcombine pass schedule?

I'm not sure i understand the question.
There's for sure already instcombine invocations after SROA, e.g.: https://github.com/llvm/llvm-project/blob/88241ffb5636ebc0579d3ab8eeec78446a769c54/llvm/test/Other/opt-O3-pipeline.ll#L142-L164


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88893/new/

https://reviews.llvm.org/D88893



More information about the llvm-commits mailing list