Fix -Wmisleading-indentation gcc7 warning. NFCI.

llvm-svn: 356658
This commit is contained in:
Simon Pilgrim 2019-03-21 11:58:22 +00:00
parent defdb1070f
commit 92cbcfc325
1 changed files with 6 additions and 6 deletions

View File

@ -1217,13 +1217,13 @@ bool llvm::canSinkOrHoistInst(Instruction &I, AAResults *AA, DominatorTree *DT,
assert(!LI->isUnordered() && "Expected unordered load");
return false;
}
}
}
auto *Source = MSSA->getSkipSelfWalker()->getClobberingMemoryAccess(SI);
(*LicmMssaOptCounter)++;
// If there are no clobbering Defs in the loop, store is safe to hoist.
return MSSA->isLiveOnEntryDef(Source) ||
!CurLoop->contains(Source->getBlock());
auto *Source = MSSA->getSkipSelfWalker()->getClobberingMemoryAccess(SI);
(*LicmMssaOptCounter)++;
// If there are no clobbering Defs in the loop, store is safe to hoist.
return MSSA->isLiveOnEntryDef(Source) ||
!CurLoop->contains(Source->getBlock());
}
}