diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-08-04 18:13:56 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-08-04 18:13:56 +0000 |
commit | f08341457f8b79f5a138677cb7d0f03a80f6c9c2 (patch) | |
tree | bafe59aeb25c455a5e334665bc15c2ce3636a4f1 /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | 3416e5f645186a7e3321f927eab662d0ecef404b (diff) |
Remove some more dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index b24f6693be..02c304473d 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -37,21 +37,6 @@ using namespace llvm; namespace { Statistic<> NumReduced ("loop-reduce", "Number of GEPs strength reduced"); - class GEPCache { - public: - GEPCache() : CachedPHINode(0), Map() {} - - GEPCache *get(Value *v) { - std::map<Value *, GEPCache>::iterator I = Map.find(v); - if (I == Map.end()) - I = Map.insert(std::pair<Value *, GEPCache>(v, GEPCache())).first; - return &I->second; - } - - PHINode *CachedPHINode; - std::map<Value *, GEPCache> Map; - }; - /// IVStrideUse - Keep track of one use of a strided induction variable, where /// the stride is stored externally. The Offset member keeps track of the /// offset from the IV, User is the actual user of the operand, and 'Operand' @@ -145,11 +130,6 @@ private: void StrengthReduceStridedIVUsers(Value *Stride, IVUsersOfOneStride &Uses, Loop *L, bool isOnlyStride); - - void strengthReduceGEP(GetElementPtrInst *GEPI, Loop *L, - GEPCache* GEPCache, - Instruction *InsertBefore, - std::set<Instruction*> &DeadInsts); void DeleteTriviallyDeadInstructions(std::set<Instruction*> &Insts); }; RegisterOpt<LoopStrengthReduce> X("loop-reduce", |