New guardStore

This commit is contained in:
caheckman 2019-06-25 16:53:49 -04:00
parent cb39d39a23
commit 171602e1ce
6 changed files with 42 additions and 16 deletions

View file

@ -2805,6 +2805,13 @@ int4 RuleIndirectCollapse::applyOp(PcodeOp *op,Funcdata &data)
if (!op->getOut()->hasNoLocalAlias())
return 0;
}
else if (indop->usesSpacebasePtr()) {
const LoadGuard *guard = data.getStoreGuard(indop);
if (guard != (const LoadGuard *)0) {
if (guard->isGuarded(op->getOut()->getAddr()))
return 0;
}
}
else
return 0;
}