[llvm] [BasicAA] Treat returns_twice functions as clobbering unescaped objects (PR #117902)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 17 11:26:16 PDT 2025


antoniofrighetto wrote:

> Possibly. Note that callCapturesBefore() is mostly obsolete and only used by one place in MemCpyOpt at this point, so it likely doesn't make a difference in practice.

I'm only left with a doubt: being mostly obsolete, is there any particular reason why MemCpyOpt is not leveraging BatchAA with EarliestEscapeAnalysis? Or should it be possible (desirable) to move MemCpyOpt to employ the latter as well?

https://github.com/llvm/llvm-project/pull/117902


More information about the llvm-commits mailing list