[PATCH] D101980: [RFC] [Coroutines] Put the contents of byval argument to the frame

Xun Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 13 11:00:44 PDT 2021


lxfind added a comment.

Here is an idea:
we could introduce an intrinsics that doesn't do anything but just server the purpose of telling the compiler to not optimize out a pointer (i.e. indicating maywrite to the pointer).
And in front end, for every copy we create from the parameter, we mark the local copy with that intrinsics. This will make sure that memcpyopt will never optimize it out.


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

https://reviews.llvm.org/D101980



More information about the llvm-commits mailing list