summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-01 19:45:00 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-01 19:45:00 +0000
commitb9730471479cc4642d45f2077cbdf682699bca18 (patch)
tree0683c00e136acec808c65a3bc46ce42946305717 /llvm/lib/Analysis/ScalarEvolutionExpander.cpp
parent8ad254df8c5e1173ba80992b1239c82c07631e25 (diff)
downloadbcm5719-llvm-b9730471479cc4642d45f2077cbdf682699bca18.tar.gz
bcm5719-llvm-b9730471479cc4642d45f2077cbdf682699bca18.zip
Avoid a potential assert out if the loop increment is > 64 bits.
llvm-svn: 34798
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolutionExpander.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
index 3d985ab8852..077f67bcc2f 100644
--- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -143,7 +143,7 @@ Value *SCEVExpander::visitAddRecExpr(SCEVAddRecExpr *S) {
// 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
OpenPOWER on IntegriCloud