[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
Tue Jan 4 06:48:18 PST 2022
nikic updated this revision to Diff 397284.
nikic added a comment.
Do a captured before check on dest. I initially thought this is already covered by the callCapturesBefore check, but it isn't always. The `test_dest_captured_before_alloca` test was miscompiled before the additional check.
Thanks for catching!
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.397284.patch
Type: text/x-patch
Size: 10440 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220104/04f569b3/attachment.bin>
More information about the llvm-commits
mailing list