[AST] Minor whitespace cleanup [NFC]

llvm-svn: 340440
This commit is contained in:
Philip Reames 2018-08-22 19:30:46 +00:00
parent 6593df241a
commit f8681cea87
1 changed files with 7 additions and 11 deletions

View File

@ -374,14 +374,14 @@ void AliasSetTracker::add(Value *Ptr, LocationSize Size,
}
void AliasSetTracker::add(LoadInst *LI) {
if (isStrongerThanMonotonic(LI->getOrdering())) return addUnknown(LI);
if (isStrongerThanMonotonic(LI->getOrdering()))
return addUnknown(LI);
addPointer(MemoryLocation::get(LI), AliasSet::RefAccess);
}
void AliasSetTracker::add(StoreInst *SI) {
if (isStrongerThanMonotonic(SI->getOrdering())) return addUnknown(SI);
if (isStrongerThanMonotonic(SI->getOrdering()))
return addUnknown(SI);
addPointer(MemoryLocation::get(SI), AliasSet::ModAccess);
}
@ -390,16 +390,12 @@ void AliasSetTracker::add(VAArgInst *VAAI) {
}
void AliasSetTracker::add(AnyMemSetInst *MSI) {
auto MemLoc = MemoryLocation::getForDest(MSI);
addPointer(MemLoc, AliasSet::ModAccess);
addPointer(MemoryLocation::getForDest(MSI), AliasSet::ModAccess);
}
void AliasSetTracker::add(AnyMemTransferInst *MTI) {
auto SrcLoc = MemoryLocation::getForSource(MTI);
addPointer(SrcLoc, AliasSet::RefAccess);
auto DestLoc = MemoryLocation::getForDest(MTI);
addPointer(DestLoc, AliasSet::ModAccess);
addPointer(MemoryLocation::getForSource(MTI), AliasSet::RefAccess);
addPointer(MemoryLocation::getForDest(MTI), AliasSet::ModAccess);
}
void AliasSetTracker::addUnknown(Instruction *Inst) {