[llvm] r281501 - [LoopInterchange] Typo. NFC.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 10:12:31 PDT 2016


Author: mcrosier
Date: Wed Sep 14 12:12:30 2016
New Revision: 281501

URL: http://llvm.org/viewvc/llvm-project?rev=281501&view=rev
Log:
[LoopInterchange] Typo. NFC.

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

Modified: llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp?rev=281501&r1=281500&r2=281501&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp Wed Sep 14 12:12:30 2016
@@ -948,9 +948,9 @@ int LoopInterchangeProfitability::getIns
   return GoodOrder - BadOrder;
 }
 
-static bool isProfitabileForVectorization(unsigned InnerLoopId,
-                                          unsigned OuterLoopId,
-                                          CharMatrix &DepMatrix) {
+static bool isProfitableForVectorization(unsigned InnerLoopId,
+                                         unsigned OuterLoopId,
+                                         CharMatrix &DepMatrix) {
   // TODO: Improve this heuristic to catch more cases.
   // If the inner loop is loop independent or doesn't carry any dependency it is
   // profitable to move this to outer position.
@@ -987,7 +987,7 @@ bool LoopInterchangeProfitability::isPro
   // It is not profitable as per current cache profitability model. But check if
   // we can move this loop outside to improve parallelism.
   bool ImprovesPar =
-      isProfitabileForVectorization(InnerLoopId, OuterLoopId, DepMatrix);
+      isProfitableForVectorization(InnerLoopId, OuterLoopId, DepMatrix);
   return ImprovesPar;
 }
 




More information about the llvm-commits mailing list