[PATCH] D104184: [Coroutine] Properly deal with byval and noalias parameters

Xun Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 14 17:22:02 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 {
----------------
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.


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