[PATCH] D153453: [MemCpyOpt] implement single BB stack-move optimization which unify the static unescaped allocas

Kohei Asano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 03:11:57 PDT 2023


khei4 updated this revision to Diff 541421.
khei4 added a comment.

To address teminator lifetime insertion issue. Rebased for https://reviews.llvm.org/D155571

- don't insert if the lastuser is the terminator for the BB,
  - This requires PostDominatorTree, so coming patch insert this, I believe the absence of the `lifetime.end` is not so much an issue ;) I'll appreciate if you tell me if it matters.


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

https://reviews.llvm.org/D153453

Files:
  llvm/include/llvm/Transforms/Scalar/MemCpyOptimizer.h
  llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
  llvm/test/Transforms/MemCpyOpt/callslot.ll
  llvm/test/Transforms/MemCpyOpt/stack-move.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153453.541421.patch
Type: text/x-patch
Size: 32254 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230718/dffda5be/attachment.bin>


More information about the llvm-commits mailing list