From 456044b724de711b0266bb1953f2ffda024b93c7 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Thu, 4 Aug 2005 18:13:56 +0000 Subject: Remove some more dead code. llvm-svn: 22650 --- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index b24f6693bea..02c304473df 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/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::iterator I = Map.find(v); - if (I == Map.end()) - I = Map.insert(std::pair(v, GEPCache())).first; - return &I->second; - } - - PHINode *CachedPHINode; - std::map 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 &DeadInsts); void DeleteTriviallyDeadInstructions(std::set &Insts); }; RegisterOpt X("loop-reduce", -- cgit v1.2.3