Remove some more dead code.
authorNate Begeman <natebegeman@mac.com>
Thu, 4 Aug 2005 18:13:56 +0000 (18:13 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 4 Aug 2005 18:13:56 +0000 (18:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22650 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopStrengthReduce.cpp

index b24f6693beafddc8c10a35a5ddb31cb1d7f4c51d..02c304473df479a82d7685b5a670e596f5744324 100644 (file)
@@ -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",