[PATCH] D109503: [stack-safety] Allow to determine safe accesses.
Florian Mayer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 10 11:22:02 PDT 2021
fmayer added inline comments.
================
Comment at: llvm/lib/Analysis/StackSafetyAnalysis.cpp:820-837
+ std::map<const Instruction *, bool> Accesses;
for (auto &FnKV : Info->Info) {
for (auto &KV : FnKV.second.Allocas) {
++NumAllocaTotal;
const AllocaInst *AI = KV.first;
- if (getStaticAllocaSizeRange(*AI).contains(KV.second.Range)) {
+ auto AIRange = getStaticAllocaSizeRange(*AI);
+ if (AIRange.contains(KV.second.Range)) {
----------------
vitalybuka wrote:
> this one is not done
Sorry, I was sure I did this, but must have messed up the upload somehow.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109503/new/
https://reviews.llvm.org/D109503
More information about the llvm-commits
mailing list