aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/RedundantLoadElimination.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Scalar/RedundantLoadElimination.cpp')
-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