[llvm-dev] RFC: Memcpy inlining in IR

Roman Lebedev via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 20 00:04:39 PDT 2019

On Thu, Jun 20, 2019 at 6:42 AM Amara Emerson via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Hi all,
> For GlobalISel, we’re exploring options for implementing inlining optimizations for memcpy and friends. However, looking around the existing implementation, I don’t see anything that would particularly be problematic for us to do it at the IR level.
> The existing TLI hooks to specify how certain memcpy calls should be lowered doesn’t have anything too SelectionDAG specific, and an IR lowering pass could be shared in future between SDAG and GISel. Does anyone see issues with this?
Sounds similar to https://reviews.llvm.org/D60318
It should be done *really* late in the middle-end pipeline though.

> Thanks,
> Amara

> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

More information about the llvm-dev mailing list