aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-07-24 00:17:04 +0000
committerOwen Anderson <resistor@mac.com>2007-07-24 00:17:04 +0000
commita19580ccc003d2c236526cb7bcf76bda744260f3 (patch)
tree54b49c0c5a050d75950c7470abf7af78213c6a31 /lib
parente6d377ad7df7f335c112d95dfbb526ffc5d28bb1 (diff)
downloadexternal_llvm-a19580ccc003d2c236526cb7bcf76bda744260f3.zip
external_llvm-a19580ccc003d2c236526cb7bcf76bda744260f3.tar.gz
external_llvm-a19580ccc003d2c236526cb7bcf76bda744260f3.tar.bz2
Rename a lot of things to change FastDLE to RedundantLoadElimination.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/RedundantLoadElimination.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Transforms/Scalar/RedundantLoadElimination.cpp b/lib/Transforms/Scalar/RedundantLoadElimination.cpp
index 74712ad..8d63a39 100644
--- a/lib/Transforms/Scalar/RedundantLoadElimination.cpp
+++ b/lib/Transforms/Scalar/RedundantLoadElimination.cpp
@@ -15,7 +15,7 @@
//
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "fdle"
+#define DEBUG_TYPE "rle"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
@@ -30,9 +30,9 @@ using namespace llvm;
STATISTIC(NumFastLoads, "Number of loads deleted");
namespace {
- struct VISIBILITY_HIDDEN FDLE : public FunctionPass {
+ struct VISIBILITY_HIDDEN RLE : public FunctionPass {
static char ID; // Pass identification, replacement for typeid
- FDLE() : FunctionPass((intptr_t)&ID) {}
+ RLE() : FunctionPass((intptr_t)&ID) {}
virtual bool runOnFunction(Function &F) {
bool Changed = false;
@@ -51,13 +51,13 @@ namespace {
AU.addPreserved<MemoryDependenceAnalysis>();
}
};
- char FDLE::ID = 0;
- RegisterPass<FDLE> X("fdle", "Fast Dead Load Elimination");
+ char RLE::ID = 0;
+ RegisterPass<RLE> X("rle", "Redundant Load Elimination");
}
-FunctionPass *llvm::createFastDeadLoadEliminationPass() { return new FDLE(); }
+FunctionPass *llvm::createRedundantLoadEliminationPass() { return new RLE(); }
-bool FDLE::runOnBasicBlock(BasicBlock &BB) {
+bool RLE::runOnBasicBlock(BasicBlock &BB) {
MemoryDependenceAnalysis& MD = getAnalysis<MemoryDependenceAnalysis>();
// Record the last-seen load from this pointer