assumptions about the values in the enum. Replace with wrapper returning
bool [NFC].
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319949
91177308-0d34-0410-b5e6-
96231b3b80d8
++E; // Convert from inclusive to exclusive range.
for (; I != E; ++I) // Check every instruction in range
- if (intersectModRef(getModRefInfo(&*I, Loc), Mode))
+ if (isModOrRefSet(intersectModRef(getModRefInfo(&*I, Loc), Mode)))
return true;
return false;
}
for (auto *B : L->blocks())
for (auto &I : *B)
if (Ignored.count(&I) == 0 &&
- intersectModRef(AA.getModRefInfo(&I, StoreLoc), Access))
+ isModOrRefSet(
+ intersectModRef(AA.getModRefInfo(&I, StoreLoc), Access)))
return true;
return false;
++BI)
for (Instruction &I : **BI)
if (IgnoredStores.count(&I) == 0 &&
- intersectModRef(AA.getModRefInfo(&I, StoreLoc), Access))
+ isModOrRefSet(
+ intersectModRef(AA.getModRefInfo(&I, StoreLoc), Access)))
return true;
return false;