Avoid a potential assert out if the loop increment is > 64 bits.
llvm-svn: 34798
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
index 3d985ab..077f67b 100644
--- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -143,7 +143,7 @@
// IF the step is by one, just return the inserted IV.
if (ConstantInt *CI = dyn_cast<ConstantInt>(F))
- if (CI->getZExtValue() == 1)
+ if (CI->getValue() == 1)
return I;
// If the insert point is directly inside of the loop, emit the multiply at