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

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 13:51:47 PDT 2023


vitalybuka added a comment.

This is reproducer 6ee9de7a676a22e8ee5254a91c9a14fdcb8b7f94 <https://reviews.llvm.org/rG6ee9de7a676a22e8ee5254a91c9a14fdcb8b7f94>

So the pass MUST not reduce lifetime of existing allocas - that's miscompile.
Expanding is acceptable, but can make stack coloring or sanitizers less efficient.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153453



More information about the llvm-commits mailing list