From: Chris Lattner Date: Mon, 11 Oct 2004 04:07:27 +0000 (+0000) Subject: Fix SingleSource/Benchmarks/McGill/chomp X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4a2b23e189cacb3c7afbfe3c38690768a01390ef;p=oota-llvm.git Fix SingleSource/Benchmarks/McGill/chomp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16912 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 6a2bc714bbe..31c85172f8a 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(Start)) return UnknownValue; SCEVHandle Step = AddRec->getOperand(1); Step = getSCEVAtScope(Step, L->getParentLoop());