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
This commit is contained in:
Chris Lattner 2004-04-16 06:03:17 +00:00
parent e1f0cf179f
commit 006118fe8c

View 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;