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 | 6faf3949f674b7da35e5720d4a36ac998f22a84a (patch) | |
| tree | c3cca77bd63206b553171e37a4744120bd8319b1 /llvm/lib/Analysis/ScalarEvolution.cpp | |
| parent | b2b7f90cafe73f29e933fc21d7fe96919d6084e7 (diff) | |
| download | bcm5719-llvm-6faf3949f674b7da35e5720d4a36ac998f22a84a.tar.gz bcm5719-llvm-6faf3949f674b7da35e5720d4a36ac998f22a84a.zip | |
Fix SingleSource/Benchmarks/McGill/chomp
llvm-svn: 16912
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 6a2bc714bbe..31c85172f8a 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/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()); |

