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

Chris Lattner lattner at cs.uiuc.edu
Sun Jun 20 15:40:02 PDT 2004


Changes in directory llvm/lib/Analysis:

ScalarEvolution.cpp updated: 1.20 -> 1.21

---
Log message:

REALLY fix PR378: http://llvm.cs.uiuc.edu/PR378 : crash in scalar evolution analysis


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

Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.20 llvm/lib/Analysis/ScalarEvolution.cpp:1.21
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.20	Sun Jun 20 12:01:44 2004
+++ llvm/lib/Analysis/ScalarEvolution.cpp	Sun Jun 20 15:32:16 2004
@@ -376,6 +376,7 @@
         // Move it to immediately after i'th element.
         std::swap(Ops[i+1], Ops[j]);
         ++i;   // no need to rescan it.
+        if (i == e-2) return;  // Done!
       }
     }
   }





More information about the llvm-commits mailing list