Fix some of the strange CBE-only failures that happened last night.
authorChris Lattner <sabre@nondot.org>
Fri, 16 Apr 2004 06:03:17 +0000 (06:03 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 16 Apr 2004 06:03:17 +0000 (06:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12980 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/IndVarSimplify.cpp

index 8462945a74297a4002abf6908a4e1671382b46e7..9bc897fe022e2484f828f250323d753c6d433249 100644 (file)
@@ -386,6 +386,7 @@ void IndVarSimplify::runOnLoop(Loop *L) {
 
   // Now that we know the largest of of the induction variables in this loop,
   // insert a canonical induction variable of the largest size.
+  LargestType = LargestType->getUnsignedVersion();
   Value *IndVar = Rewriter.GetOrInsertCanonicalInductionVariable(L,LargestType);
   ++NumInserted;
   Changed = true;