summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ValueNumbering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-25 22:27:25 +0000
committerChris Lattner <sabre@nondot.org>2002-09-25 22:27:25 +0000
commitceae380b2c062c80c0860a209e630db43cdb39a6 (patch)
tree1fe4583707c11a86d37125355b82a0942724ed4a /llvm/lib/Analysis/ValueNumbering.cpp
parent480b37d47920b5864502bdc11db1aa5d3eb6db4b (diff)
downloadbcm5719-llvm-ceae380b2c062c80c0860a209e630db43cdb39a6.tar.gz
bcm5719-llvm-ceae380b2c062c80c0860a209e630db43cdb39a6.zip
Convert BasicVN to be an ImmutablePass
llvm-svn: 3924
Diffstat (limited to 'llvm/lib/Analysis/ValueNumbering.cpp')
-rw-r--r--llvm/lib/Analysis/ValueNumbering.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/Analysis/ValueNumbering.cpp b/llvm/lib/Analysis/ValueNumbering.cpp
index 32e4439eaab..519d9dbf97f 100644
--- a/llvm/lib/Analysis/ValueNumbering.cpp
+++ b/llvm/lib/Analysis/ValueNumbering.cpp
@@ -38,18 +38,7 @@ namespace {
/// lexically identical expressions. This does not require any ahead of time
/// analysis, so it is a very fast default implementation.
///
- struct BasicVN : public FunctionPass, public ValueNumbering {
-
- /// Pass Implementation stuff. This isn't much of a pass.
- ///
- bool runOnFunction(Function &) { return false; }
-
- /// getAnalysisUsage - Does not modify anything.
- ///
- virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- AU.setPreservesAll();
- }
-
+ struct BasicVN : public ImmutablePass, public ValueNumbering {
/// getEqualNumberNodes - Return nodes with the same value number as the
/// specified Value. This fills in the argument vector with any equal
/// values.
OpenPOWER on IntegriCloud