summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ADCE.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-23 18:06:35 +0000
committerChris Lattner <sabre@nondot.org>2002-07-23 18:06:35 +0000
commitb28b6801551d44108f6d7c08383a69e1a1010d2f (patch)
tree73d5091db6a0b47b2d2cf62ca27eef26b5e666dc /llvm/lib/Transforms/Scalar/ADCE.cpp
parent6788f25f997f95505f3bfac89af2649f3660164d (diff)
downloadbcm5719-llvm-b28b6801551d44108f6d7c08383a69e1a1010d2f.tar.gz
bcm5719-llvm-b28b6801551d44108f6d7c08383a69e1a1010d2f.zip
*** empty log message ***
llvm-svn: 3016
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ADCE.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ADCE.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/ADCE.cpp b/llvm/lib/Transforms/Scalar/ADCE.cpp
index 35189e36838..d70980e2078 100644
--- a/llvm/lib/Transforms/Scalar/ADCE.cpp
+++ b/llvm/lib/Transforms/Scalar/ADCE.cpp
@@ -43,8 +43,6 @@ class ADCE : public FunctionPass {
// The public interface for this class
//
public:
- const char *getPassName() const { return "Aggressive Dead Code Elimination"; }
-
// Execute the Aggressive Dead Code Elimination Algorithm
//
virtual bool runOnFunction(Function &F) {
@@ -86,11 +84,11 @@ private:
}
};
+ RegisterPass<ADCE> X("adce", "Aggressive Dead Code Elimination");
} // End of anonymous namespace
Pass *createAggressiveDCEPass() { return new ADCE(); }
-
void ADCE::markBlockAlive(BasicBlock *BB) {
// Mark the basic block as being newly ALIVE... and mark all branches that
// this block is control dependant on as being alive also...
OpenPOWER on IntegriCloud