Fix a misspelled function name.
authorDale Johannesen <dalej@apple.com>
Wed, 3 Dec 2008 20:56:12 +0000 (20:56 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 3 Dec 2008 20:56:12 +0000 (20:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60506 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopStrengthReduce.cpp

index 1e6a4e8f0eae714e53b3a7b7a49da85c99977005..d375130dba372bb984ed2ac2c08c7978cf371715 100644 (file)
@@ -767,9 +767,9 @@ static bool isTargetConstant(const SCEVHandle &V, const Type *UseTy,
   return false;
 }
 
-/// MoveLoopVariantsToImediateField - Move any subexpressions from Val that are
+/// MoveLoopVariantsToImmediateField - Move any subexpressions from Val that are
 /// loop varying to the Imm operand.
-static void MoveLoopVariantsToImediateField(SCEVHandle &Val, SCEVHandle &Imm,
+static void MoveLoopVariantsToImmediateField(SCEVHandle &Val, SCEVHandle &Imm,
                                             Loop *L, ScalarEvolution *SE) {
   if (Val->isLoopInvariant(L)) return;  // Nothing to do.
   
@@ -793,7 +793,7 @@ static void MoveLoopVariantsToImediateField(SCEVHandle &Val, SCEVHandle &Imm,
   } else if (SCEVAddRecExpr *SARE = dyn_cast<SCEVAddRecExpr>(Val)) {
     // Try to pull immediates out of the start value of nested addrec's.
     SCEVHandle Start = SARE->getStart();
-    MoveLoopVariantsToImediateField(Start, Imm, L, SE);
+    MoveLoopVariantsToImmediateField(Start, Imm, L, SE);
     
     std::vector<SCEVHandle> Ops(SARE->op_begin(), SARE->op_end());
     Ops[0] = Start;
@@ -1183,7 +1183,7 @@ SCEVHandle LoopStrengthReduce::CollectIVUsers(const SCEVHandle &Stride,
     // Move any loop variant operands from the offset field to the immediate
     // field of the use, so that we don't try to use something before it is
     // computed.
-    MoveLoopVariantsToImediateField(UsersToProcess.back().Base,
+    MoveLoopVariantsToImmediateField(UsersToProcess.back().Base,
                                     UsersToProcess.back().Imm, L, SE);
     assert(UsersToProcess.back().Base->isLoopInvariant(L) &&
            "Base value is not loop invariant!");