diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-11 04:07:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-11 04:07:27 +0000 |
commit | 4a2b23e189cacb3c7afbfe3c38690768a01390ef (patch) | |
tree | c8f774534595b855120e81a6e338ec334ebefa70 /lib/Analysis/ScalarEvolution.cpp | |
parent | f8d1097e9d69c65642d008926065317db583961a (diff) |
Fix SingleSource/Benchmarks/McGill/chomp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 6a2bc714bb..31c85172f8 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -1898,6 +1898,7 @@ SCEVHandle ScalarEvolutionsImpl::HowFarToZero(SCEV *V, const Loop *L) { // // Get the initial value for the loop. SCEVHandle Start = getSCEVAtScope(AddRec->getStart(), L->getParentLoop()); + if (isa<SCEVCouldNotCompute>(Start)) return UnknownValue; SCEVHandle Step = AddRec->getOperand(1); Step = getSCEVAtScope(Step, L->getParentLoop()); |