From 9e9b2b74740eb77da991a2d2062be234e8b084f9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 16 Apr 2004 06:03:17 +0000 Subject: Fix some of the strange CBE-only failures that happened last night. llvm-svn: 12980 --- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 8462945a742..9bc897fe022 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -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; -- cgit v1.2.3