projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1f0cf1
)
Fix some of the strange CBE-only failures that happened last night.
author
Chris Lattner
<sabre@nondot.org>
Fri, 16 Apr 2004 06:03:17 +0000
(06:03 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 16 Apr 2004 06:03:17 +0000
(06:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12980
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/IndVarSimplify.cpp
b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 8462945a74297a4002abf6908a4e1671382b46e7..9bc897fe022e2484f828f250323d753c6d433249 100644
(file)
--- 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;