From 80d595cdf8fdf4df880a4835a0cf53f8024deb11 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Wed, 22 Aug 2018 19:30:46 +0000 Subject: [PATCH] [AST] Minor whitespace cleanup [NFC] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340440 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/AliasSetTracker.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index e5e3ba0da87..377db8a569f 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/lib/Analysis/AliasSetTracker.cpp @@ -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) {