[llvm-commits] CVS: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Apr 16 01:04:00 PDT 2004


Changes in directory llvm/lib/Transforms/Scalar:

IndVarSimplify.cpp updated: 1.55 -> 1.56

---
Log message:

Fix some of the strange CBE-only failures that happened last night.


---
Diffs of the changes:  (+1 -0)

Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.55 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.56
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.55	Thu Apr 15 15:26:22 2004
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp	Fri Apr 16 01:03:17 2004
@@ -386,6 +386,7 @@
 
   // 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;





More information about the llvm-commits mailing list