[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolution.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 10 21:07:40 PDT 2004



Changes in directory llvm/lib/Analysis:

ScalarEvolution.cpp updated: 1.25 -> 1.26
---
Log message:

Fix SingleSource/Benchmarks/McGill/chomp


---
Diffs of the changes:  (+1 -0)

Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.25 llvm/lib/Analysis/ScalarEvolution.cpp:1.26
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.25	Fri Sep  3 13:19:51 2004
+++ llvm/lib/Analysis/ScalarEvolution.cpp	Sun Oct 10 23:07:27 2004
@@ -1898,6 +1898,7 @@
     //
     // 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());






More information about the llvm-commits mailing list