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

Chris Lattner lattner at cs.uiuc.edu
Thu Jun 24 01:52:01 PDT 2004


Changes in directory llvm/lib/Analysis:

ScalarEvolution.cpp updated: 1.21 -> 1.22

---
Log message:

Remove distasteful method which is really part of the indvars pass


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

Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.21 llvm/lib/Analysis/ScalarEvolution.cpp:1.22
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.21	Sun Jun 20 15:32:16 2004
+++ llvm/lib/Analysis/ScalarEvolution.cpp	Thu Jun 24 01:51:27 2004
@@ -2177,19 +2177,6 @@
   return ((ScalarEvolutionsImpl*)Impl)->deleteInstructionFromRecords(I);
 }
 
-
-/// shouldSubstituteIndVar - Return true if we should perform induction variable
-/// substitution for this variable.  This is a hack because we don't have a
-/// strength reduction pass yet.  When we do we will promote all vars, because
-/// we can strength reduce them later as desired.
-bool ScalarEvolution::shouldSubstituteIndVar(const SCEV *S) const {
-  // Don't substitute high degree polynomials.
-  if (const SCEVAddRecExpr *AddRec = dyn_cast<SCEVAddRecExpr>(S))
-    if (AddRec->getNumOperands() > 3) return false;
-  return true;
-}
-
-
 static void PrintLoopInfo(std::ostream &OS, const ScalarEvolution *SE, 
                           const Loop *L) {
   // Print all inner loops first





More information about the llvm-commits mailing list