From: Chris Lattner Date: Fri, 16 Apr 2004 06:03:17 +0000 (+0000) Subject: Fix some of the strange CBE-only failures that happened last night. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=006118fe8c73d8009d7952b84cabd50882ed0033;p=oota-llvm.git Fix some of the strange CBE-only failures that happened last night. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12980 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 8462945a742..9bc897fe022 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/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;