[PATCH] D113160: [stack-safety] Check SCEV constraints at memory instructions.
Florian Mayer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 19 18:55:57 PST 2021
fmayer added inline comments.
================
Comment at: llvm/lib/Analysis/StackSafetyAnalysis.cpp:452
+ auto AccessRange = getMemIntrinsicAccessRange(MI, UI, Ptr);
+ bool Safe = false;
+ if (const auto *MTI = dyn_cast<MemTransferInst>(MI)) {
----------------
vitalybuka wrote:
> it's going to make instruction safe even if user is not alloca
>
> For consistency isSafeMemIntrinsicAccess will help
This is consistent with the API this is used in
```
// Returns true if the instruction can be proven to do only two types of
// memory accesses:
// (1) live stack locations in-bounds or
// (2) non-stack locations.
```
If the user is not alloca, that is (2).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113160/new/
https://reviews.llvm.org/D113160
More information about the llvm-commits
mailing list