From 4d12ab485a42dfb7315be497f4295f948866d0ff Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 21 Mar 2019 11:58:22 +0000 Subject: [PATCH] Fix -Wmisleading-indentation gcc7 warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356658 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LICM.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 9efc3d217e4..17ac6b83993 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -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()); } } -- 2.40.0