Revert "Revert "[MemCpyOpt] implement single BB stack-move optimization which unify...
authorkhei4 <kk.asano.luxy@gmail.com>
Thu, 13 Jul 2023 09:59:21 +0000 (18:59 +0900)
committerkhei4 <kk.asano.luxy@gmail.com>
Sat, 15 Jul 2023 07:27:38 +0000 (16:27 +0900)
commitb02d349cbfaa81c9bbc928c4de46b12d976c1882
tree6daf7c05fff268a175ca73357417013a33c8142c
parenta92e197114b25ee8151d2d4d6dbbcc3728b15f24
Revert "Revert "[MemCpyOpt] implement single BB stack-move optimization which unify the static unescaped allocas""

This reverts commit 36a6eb7d12a9f827bf3d5d4e5fdc68b8a62807b2.

[MemCpyOpt] check that load/store and dest/src alloca are all in the same bb

Differential Revision: https://reviews.llvm.org/D153453
Co-authored-by: serge-sans-paille <sguelton@mozilla.com>
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