Convert BasicVN to be an ImmutablePass
authorChris Lattner <sabre@nondot.org>
Wed, 25 Sep 2002 22:27:25 +0000 (22:27 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 25 Sep 2002 22:27:25 +0000 (22:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3924 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ValueNumbering.cpp

index 32e4439eaaba591352d68eed59b1847e6053aad2..519d9dbf97f08656b4a1d34b9be0919a53949665 100644 (file)
@@ -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.