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

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 3 08:35:13 PST 2022


nikic updated this revision to Diff 397070.
nikic added a comment.

Check that dest is identified function local. Note that the added `@test_global` test already passes before this change, because GlobalsModRef is not actually smart enough to cause problems. Still, it might be in the future.


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

https://reviews.llvm.org/D115615

Files:
  llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
  llvm/test/Transforms/MemCpyOpt/capturing-func.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115615.397070.patch
Type: text/x-patch
Size: 9077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220103/2179c92f/attachment.bin>


More information about the llvm-commits mailing list