diff options
author | Philip Reames <listmail@philipreames.com> | 2018-08-22 19:30:46 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2018-08-22 19:30:46 +0000 |
commit | f8681cea87a53f34387dc2939c223b58588804b9 (patch) | |
tree | d9e93bbc366067966fba93dd449c51466a8f1235 /llvm/lib/Analysis/AliasSetTracker.cpp | |
parent | 6593df241a1d119c84c0d97eec4486d2756c4ea1 (diff) | |
download | bcm5719-llvm-f8681cea87a53f34387dc2939c223b58588804b9.tar.gz bcm5719-llvm-f8681cea87a53f34387dc2939c223b58588804b9.zip |
[AST] Minor whitespace cleanup [NFC]
llvm-svn: 340440
Diffstat (limited to 'llvm/lib/Analysis/AliasSetTracker.cpp')
-rw-r--r-- | llvm/lib/Analysis/AliasSetTracker.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index e5e3ba0da87..377db8a569f 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/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) { |