[llvm] [SROA] Optimize reloaded values in allocas that escape into readonly nocapture calls. (PR #116645)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 09:15:44 PST 2024
================
@@ -100,6 +113,7 @@ class PtrUseVisitorBase {
private:
Instruction *AbortedInfo = nullptr;
Instruction *EscapedInfo = nullptr;
+ Instruction *EscapedReadOnly = nullptr;
----------------
nikic wrote:
I'm concerned that, as implemented, this may affect other users of PtrUseVisitor, which only check isEscaped() and don't know that they need to check isEscapedReadOnly() as well. A read-only escape should probably still report as an escape?
https://github.com/llvm/llvm-project/pull/116645
More information about the llvm-commits
mailing list