[PATCH] D115615: [MemCpyOpt] Make capture check during call slot optimization more precise

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 3 08:56:11 PST 2022


reames added a comment.

isIdentifiedFunctionLocal isn't the right check.  I think you need is not captured before.

Take my prior example, replace the global with an alloca, and add a capturing store of that alloca into some global location.  Foo reads back the global, and checks the address.


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

https://reviews.llvm.org/D115615



More information about the llvm-commits mailing list