[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
Mon Jul 10 06:30:22 PDT 2023
khei4 added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp:1501
+ if (GEP->isInBounds())
+ return true;
+ bool CanBeNull, CanBeFreed;
----------------
khei4 wrote:
> nikic wrote:
> > Drop the inbounds handling code, it's no longer correct. Actually, it would be fine to just pass nullptr instead of IsDereferenceableOrNull, we don't really care about this case.
> Oh, thanks! I took it from https://github.com/llvm/llvm-project/blob/main/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp#L1483-L1497. I believe the same goes for it.
Sorry, the link is broken. And seems like fixed already upstream.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153453/new/
https://reviews.llvm.org/D153453
More information about the llvm-commits
mailing list