Rename a lot of things to change FastDLE to RedundantLoadElimination.
authorOwen Anderson <resistor@mac.com>
Tue, 24 Jul 2007 00:17:04 +0000 (00:17 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 24 Jul 2007 00:17:04 +0000 (00:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40457 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/LinkAllPasses.h
include/llvm/Transforms/Scalar.h
lib/Transforms/Scalar/RedundantLoadElimination.cpp
test/Transforms/DeadLoadElimination/dg.exp [deleted file]
test/Transforms/DeadLoadElimination/simple.ll [deleted file]
test/Transforms/DeadLoadElimination/volatile.ll [deleted file]
test/Transforms/RedundantLoadElimination/dg.exp [new file with mode: 0644]
test/Transforms/RedundantLoadElimination/simple.ll [new file with mode: 0644]
test/Transforms/RedundantLoadElimination/volatile.ll [new file with mode: 0644]

index 1f9fcac380e12ef459922596b5545b26fc4fc9ce..8bf498af24db8eae384d38a5ac41764dfa3ac38b 100644 (file)
@@ -61,7 +61,7 @@ namespace {
       (void) llvm::createDeadStoreEliminationPass();
       (void) llvm::createDeadTypeEliminationPass();
       (void) llvm::createEdgeProfilerPass();
-      (void) llvm::createFastDeadLoadEliminationPass();
+      (void) llvm::createRedundantLoadEliminationPass();
       (void) llvm::createFastDeadStoreEliminationPass();
       (void) llvm::createFunctionInliningPass();
       (void) llvm::createFunctionProfilerPass();
index b474552da2bd9821a2161815d5ba7a09a78b54b0..9f06d6f30da172038f3ca401fe14d3d0dfbbdef4 100644 (file)
@@ -332,10 +332,10 @@ FunctionPass *createFastDeadStoreEliminationPass();
 
 //===----------------------------------------------------------------------===//
 //
-// FastDeadLoadElimination - This pass deletes loads that are dominated by
+// RedundantLoadElimination - This pass deletes loads that are dominated by
 // must-aliased loads and are not stored to between the loads.
 //
-FunctionPass *createFastDeadLoadEliminationPass();
+FunctionPass *createRedundantLoadEliminationPass();
 
 //===----------------------------------------------------------------------===//
 //
index 74712ad83fe0f6a41c1aa0f232f4c5b73e78d3b8..8d63a39bd0bb82b6a453fe7140bd657104d03171 100644 (file)
@@ -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
diff --git a/test/Transforms/DeadLoadElimination/dg.exp b/test/Transforms/DeadLoadElimination/dg.exp
deleted file mode 100644 (file)
index 879685c..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
diff --git a/test/Transforms/DeadLoadElimination/simple.ll b/test/Transforms/DeadLoadElimination/simple.ll
deleted file mode 100644 (file)
index acfee2b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: llvm-as < %s | opt -fdle | llvm-dis | not grep DEAD
-
-define void @test(i32* %Q, i32* %P) {
-  %A = load i32* %Q
-       %DEAD = load i32* %Q            ; <i32> [#uses=1]
-       ret void
-}
diff --git a/test/Transforms/DeadLoadElimination/volatile.ll b/test/Transforms/DeadLoadElimination/volatile.ll
deleted file mode 100644 (file)
index 39d883b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: llvm-as < %s | opt -fdle | llvm-dis | grep NOTDEAD
-
-define void @test(i32* %Q, i32* %P) {
-  %A = load i32* %Q
-       %NOTDEAD = volatile load i32* %Q                ; <i32> [#uses=1]
-       ret void
-}
diff --git a/test/Transforms/RedundantLoadElimination/dg.exp b/test/Transforms/RedundantLoadElimination/dg.exp
new file mode 100644 (file)
index 0000000..879685c
--- /dev/null
@@ -0,0 +1,3 @@
+load_lib llvm.exp
+
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
diff --git a/test/Transforms/RedundantLoadElimination/simple.ll b/test/Transforms/RedundantLoadElimination/simple.ll
new file mode 100644 (file)
index 0000000..a1a7c3f
--- /dev/null
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | opt -rle | llvm-dis | not grep DEAD
+
+define void @test(i32* %Q, i32* %P) {
+  %A = load i32* %Q
+       %DEAD = load i32* %Q            ; <i32> [#uses=1]
+       ret void
+}
diff --git a/test/Transforms/RedundantLoadElimination/volatile.ll b/test/Transforms/RedundantLoadElimination/volatile.ll
new file mode 100644 (file)
index 0000000..5c70f4c
--- /dev/null
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | opt -rle | llvm-dis | grep NOTDEAD
+
+define void @test(i32* %Q, i32* %P) {
+  %A = load i32* %Q
+       %NOTDEAD = volatile load i32* %Q                ; <i32> [#uses=1]
+       ret void
+}