[llvm] r340440 - [AST] Minor whitespace cleanup [NFC]

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 22 12:30:46 PDT 2018


Author: reames
Date: Wed Aug 22 12:30:46 2018
New Revision: 340440

URL: http://llvm.org/viewvc/llvm-project?rev=340440&view=rev
Log:
[AST] Minor whitespace cleanup [NFC]

Modified:
    llvm/trunk/lib/Analysis/AliasSetTracker.cpp

Modified: llvm/trunk/lib/Analysis/AliasSetTracker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/AliasSetTracker.cpp?rev=340440&r1=340439&r2=340440&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/AliasSetTracker.cpp (original)
+++ llvm/trunk/lib/Analysis/AliasSetTracker.cpp Wed Aug 22 12:30:46 2018
@@ -374,14 +374,14 @@ void AliasSetTracker::add(Value *Ptr, Lo
 }
 
 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 *VAA
 }
 
 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) {




More information about the llvm-commits mailing list