[PATCH] D104184: [Coroutine] Properly deal with byval and noalias parameters
Xun Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 15 08:09:49 PDT 2021
lxfind added inline comments.
================
Comment at: llvm/lib/Transforms/Coroutines/CoroFrame.cpp:1605
+ Builder.CreateLoad(Def->getType()->getPointerElementType(), Def);
+ Builder.CreateStore(Value, G);
+ } else {
----------------
ChuanqiXu wrote:
> lxfind wrote:
> > efriedma wrote:
> > > Use memcpy to copy large values; load+store results in very inefficient code.
> > Good to know. We actually use load+store for all the frame rewrites. We can look at changing all of that in a separate patch.
> > Use memcpy to copy large values; load+store results in very inefficient code.
>
> Would the successive pass convert load+store to memcpy?
I think it would
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104184/new/
https://reviews.llvm.org/D104184
More information about the llvm-commits
mailing list