[PATCH] D109503: [stack-safety] Allow to determine safe accesses.
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 10 11:05:18 PDT 2021
vitalybuka accepted this revision.
vitalybuka added a comment.
LGTM
================
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)) {
----------------
this one is not done
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