diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-24 06:52:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-24 06:52:20 +0000 |
commit | 5aa20212cc8dd1008d05915bf23dd02143fc5de9 (patch) | |
tree | a77f0ebb12ccec51985f6afcf77887c41d2c6d83 | |
parent | a25502acd7c0d56cbd20da37f25830d81be834c5 (diff) |
Remove distasteful method which is really part of the indvars pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14359 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/ScalarEvolution.h | 6 | ||||
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 13 |
2 files changed, 0 insertions, 19 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index f3ef0e551d..d72405d24d 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -199,12 +199,6 @@ namespace llvm { /// that no dangling references are left around. void deleteInstructionFromRecords(Instruction *I) const; - /// 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 shouldSubstituteIndVar(const SCEV *S) const; - virtual bool runOnFunction(Function &F); virtual void releaseMemory(); virtual void getAnalysisUsage(AnalysisUsage &AU) const; diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 5701dec4b2..257fc0d7fe 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/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 |