]> granicus.if.org Git - llvm/commitdiff
Fix -Wmisleading-indentation gcc7 warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 21 Mar 2019 11:58:22 +0000 (11:58 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 21 Mar 2019 11:58:22 +0000 (11:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356658 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LICM.cpp

index 9efc3d217e401638312503e34df9e732c639ef1e..17ac6b839934442612c1b4e6d0e86444c073ff34 100644 (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());
     }
   }