if (AlignedMap *P = Info.getPointer()) {
auto I = P->Map.find(&GV);
if (I != P->Map.end())
- GlobalMRI = ModRefInfo(GlobalMRI | I->second);
+ GlobalMRI = unionModRef(GlobalMRI, I->second);
}
return GlobalMRI;
}
Info.setPointer(P);
}
auto &GlobalMRI = P->Map[&GV];
- GlobalMRI = ModRefInfo(GlobalMRI | NewMRI);
+ GlobalMRI = unionModRef(GlobalMRI, NewMRI);
}
/// Clear a global's ModRef info. Should be used when a global is being
if (Callee->isIntrinsic()) {
FunctionModRefBehavior Behaviour =
AAResultBase::getModRefBehavior(Callee);
- FI.addModRefInfo(ModRefInfo(Behaviour & MRI_ModRef));
+ FI.addModRefInfo(createModRefInfo(Behaviour));
}
}
continue;
ModRefInfo MR = GetLocation(QueryInst, MemLoc, TLI);
if (MemLoc.Ptr) {
// If we can do a pointer scan, make it happen.
- bool isLoad = !(MR & MRI_Mod);
+ bool isLoad = !isModSet(MR);
if (auto *II = dyn_cast<IntrinsicInst>(QueryInst))
isLoad |= II->getIntrinsicID() == Intrinsic::lifetime_start;