summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-24 06:52:20 +0000
committerChris Lattner <sabre@nondot.org>2004-06-24 06:52:20 +0000
commit5e08b93a3430bc0be2a149fffcb7e1c052959192 (patch)
tree4788ed18be9825fe985b9846898fd45464603c5f /llvm/lib/Analysis/ScalarEvolution.cpp
parent7a002d6010c0752f726618582e131e78eef63b35 (diff)
downloadbcm5719-llvm-5e08b93a3430bc0be2a149fffcb7e1c052959192.tar.gz
bcm5719-llvm-5e08b93a3430bc0be2a149fffcb7e1c052959192.zip
Remove distasteful method which is really part of the indvars pass
llvm-svn: 14359
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 5701dec4b21..257fc0d7fe0 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -2177,19 +2177,6 @@ void ScalarEvolution::deleteInstructionFromRecords(Instruction *I) const {
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
OpenPOWER on IntegriCloud