summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-16 06:03:17 +0000
committerChris Lattner <sabre@nondot.org>2004-04-16 06:03:17 +0000
commit9e9b2b74740eb77da991a2d2062be234e8b084f9 (patch)
tree51c4de55c006961e87dafd2dc7911de03e046dc1 /llvm/lib/Transforms
parent0377e4384fcc8c39edebf3b0187b3a1f76e713f2 (diff)
downloadbcm5719-llvm-9e9b2b74740eb77da991a2d2062be234e8b084f9.tar.gz
bcm5719-llvm-9e9b2b74740eb77da991a2d2062be234e8b084f9.zip
Fix some of the strange CBE-only failures that happened last night.
llvm-svn: 12980
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp1
1 files changed, 1 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud