[llvm] r277641 - [MSSA] clang-format. NFC.

George Burgess IV via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 3 12:59:11 PDT 2016


Author: gbiv
Date: Wed Aug  3 14:59:11 2016
New Revision: 277641

URL: http://llvm.org/viewvc/llvm-project?rev=277641&view=rev
Log:
[MSSA] clang-format. NFC.

Didn't want to fold this in with r277640, since it touches bits that
aren't entirely related to r277640.

Modified:
    llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp
    llvm/trunk/unittests/Transforms/Utils/MemorySSA.cpp

Modified: llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp?rev=277641&r1=277640&r2=277641&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp Wed Aug  3 14:59:11 2016
@@ -198,9 +198,9 @@ static bool lifetimeEndsAt(MemoryDef *MD
   Instruction *Inst = MD->getMemoryInst();
   if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Inst)) {
     switch (II->getIntrinsicID()) {
-      case Intrinsic::lifetime_start:
-      case Intrinsic::lifetime_end:
-        return AA.isMustAlias(MemoryLocation(II->getArgOperand(1)), Loc);
+    case Intrinsic::lifetime_start:
+    case Intrinsic::lifetime_end:
+      return AA.isMustAlias(MemoryLocation(II->getArgOperand(1)), Loc);
     default:
       return false;
     }
@@ -208,11 +208,7 @@ static bool lifetimeEndsAt(MemoryDef *MD
   return false;
 }
 
-enum class Reorderability {
-  Always,
-  IfNoAlias,
-  Never
-};
+enum class Reorderability { Always, IfNoAlias, Never };
 
 /// This does one-way checks to see if Use could theoretically be hoisted above
 /// MayClobber. This will not check the other way around.

Modified: llvm/trunk/unittests/Transforms/Utils/MemorySSA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Transforms/Utils/MemorySSA.cpp?rev=277641&r1=277640&r2=277641&view=diff
==============================================================================
--- llvm/trunk/unittests/Transforms/Utils/MemorySSA.cpp (original)
+++ llvm/trunk/unittests/Transforms/Utils/MemorySSA.cpp Wed Aug  3 14:59:11 2016
@@ -134,9 +134,8 @@ TEST_F(MemorySSATest, MoveAStore) {
   SideStore->moveBefore(Entry->getTerminator());
   MemoryAccess *EntryStoreAccess = MSSA.getMemoryAccess(EntryStore);
   MemoryAccess *SideStoreAccess = MSSA.getMemoryAccess(SideStore);
-  MemoryAccess *NewStoreAccess = MSSA.createMemoryAccessAfter(SideStore,
-                                                         EntryStoreAccess,
-                                                         EntryStoreAccess);
+  MemoryAccess *NewStoreAccess = MSSA.createMemoryAccessAfter(
+      SideStore, EntryStoreAccess, EntryStoreAccess);
   EntryStoreAccess->replaceAllUsesWith(NewStoreAccess);
   MSSA.removeMemoryAccess(SideStoreAccess);
   MSSA.verifyMemorySSA();




More information about the llvm-commits mailing list