Skip to content

Commit 9cdc9da

Browse files
committed
[MSSA] clang-format. NFC.
Didn't want to fold this in with r277640, since it touches bits that aren't entirely related to r277640. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277641 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent cd112f0 commit 9cdc9da

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

lib/Transforms/Utils/MemorySSA.cpp

+4-8
Original file line numberDiff line numberDiff line change
@@ -198,21 +198,17 @@ static bool lifetimeEndsAt(MemoryDef *MD, const MemoryLocation &Loc,
198198
Instruction *Inst = MD->getMemoryInst();
199199
if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Inst)) {
200200
switch (II->getIntrinsicID()) {
201-
case Intrinsic::lifetime_start:
202-
case Intrinsic::lifetime_end:
203-
return AA.isMustAlias(MemoryLocation(II->getArgOperand(1)), Loc);
201+
case Intrinsic::lifetime_start:
202+
case Intrinsic::lifetime_end:
203+
return AA.isMustAlias(MemoryLocation(II->getArgOperand(1)), Loc);
204204
default:
205205
return false;
206206
}
207207
}
208208
return false;
209209
}
210210

211-
enum class Reorderability {
212-
Always,
213-
IfNoAlias,
214-
Never
215-
};
211+
enum class Reorderability { Always, IfNoAlias, Never };
216212

217213
/// This does one-way checks to see if Use could theoretically be hoisted above
218214
/// MayClobber. This will not check the other way around.

unittests/Transforms/Utils/MemorySSA.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,8 @@ TEST_F(MemorySSATest, MoveAStore) {
134134
SideStore->moveBefore(Entry->getTerminator());
135135
MemoryAccess *EntryStoreAccess = MSSA.getMemoryAccess(EntryStore);
136136
MemoryAccess *SideStoreAccess = MSSA.getMemoryAccess(SideStore);
137-
MemoryAccess *NewStoreAccess = MSSA.createMemoryAccessAfter(SideStore,
138-
EntryStoreAccess,
139-
EntryStoreAccess);
137+
MemoryAccess *NewStoreAccess = MSSA.createMemoryAccessAfter(
138+
SideStore, EntryStoreAccess, EntryStoreAccess);
140139
EntryStoreAccess->replaceAllUsesWith(NewStoreAccess);
141140
MSSA.removeMemoryAccess(SideStoreAccess);
142141
MSSA.verifyMemorySSA();

0 commit comments

Comments
 (0)