Fix SingleSource/Benchmarks/McGill/chomp

llvm-svn: 16912
This commit is contained in:
Chris Lattner 2004-10-11 04:07:27 +00:00
parent b2b7f90caf
commit 6faf3949f6
1 changed files with 1 additions and 0 deletions

View File

@ -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());