[llvm] r356658 - Fix -Wmisleading-indentation gcc7 warning. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 21 04:58:22 PDT 2019


Author: rksimon
Date: Thu Mar 21 04:58:22 2019
New Revision: 356658

URL: http://llvm.org/viewvc/llvm-project?rev=356658&view=rev
Log:
Fix -Wmisleading-indentation gcc7 warning. NFCI.

Modified:
    llvm/trunk/lib/Transforms/Scalar/LICM.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LICM.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LICM.cpp?rev=356658&r1=356657&r2=356658&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LICM.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LICM.cpp Thu Mar 21 04:58:22 2019
@@ -1217,13 +1217,13 @@ bool llvm::canSinkOrHoistInst(Instructio
                 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());
     }
   }
 




More information about the llvm-commits mailing list