mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 22:28:22 +00:00
[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
This commit is contained in:
parent
cd112f0139
commit
9cdc9dad95
@ -198,9 +198,9 @@ static bool lifetimeEndsAt(MemoryDef *MD, const MemoryLocation &Loc,
|
||||
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, const MemoryLocation &Loc,
|
||||
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.
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user