[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Nate Begeman
natebegeman at mac.com
Thu Aug 4 11:14:08 PDT 2005
Changes in directory llvm/lib/Transforms/Scalar:
LoopStrengthReduce.cpp updated: 1.31 -> 1.32
---
Log message:
Remove some more dead code.
---
Diffs of the changes: (+0 -20)
LoopStrengthReduce.cpp | 20 --------------------
1 files changed, 20 deletions(-)
Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff -u llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.31 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.32
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.31 Thu Aug 4 12:40:30 2005
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp Thu Aug 4 13:13:56 2005
@@ -37,21 +37,6 @@
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 @@
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",
More information about the llvm-commits
mailing list