[llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysisCounter.cpp BasicAliasAnalysis.cpp LoadValueNumbering.cpp ProfileInfo.cpp ProfileInfoLoaderPass.cpp ValueNumbering.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 27 17:42:50 PDT 2006



Changes in directory llvm/lib/Analysis:

AliasAnalysisCounter.cpp updated: 1.14 -> 1.15
BasicAliasAnalysis.cpp updated: 1.84 -> 1.85
LoadValueNumbering.cpp updated: 1.35 -> 1.36
ProfileInfo.cpp updated: 1.8 -> 1.9
ProfileInfoLoaderPass.cpp updated: 1.14 -> 1.15
ValueNumbering.cpp updated: 1.20 -> 1.21
---
Log message:

simplify AnalysisGroup registration, eliminating one typeid call.


---
Diffs of the changes:  (+7 -7)

 AliasAnalysisCounter.cpp  |    2 +-
 BasicAliasAnalysis.cpp    |    4 ++--
 LoadValueNumbering.cpp    |    2 +-
 ProfileInfo.cpp           |    2 +-
 ProfileInfoLoaderPass.cpp |    2 +-
 ValueNumbering.cpp        |    2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)


Index: llvm/lib/Analysis/AliasAnalysisCounter.cpp
diff -u llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.14 llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.15
--- llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.14	Sun Aug 27 17:42:51 2006
+++ llvm/lib/Analysis/AliasAnalysisCounter.cpp	Sun Aug 27 19:42:29 2006
@@ -111,7 +111,7 @@
 
   RegisterPass<AliasAnalysisCounter>
   X("count-aa", "Count Alias Analysis Query Responses");
-  RegisterAnalysisGroup<AliasAnalysis, AliasAnalysisCounter> Y;
+  RegisterAnalysisGroup<AliasAnalysis> Y(X);
 }
 
 ModulePass *llvm::createAliasAnalysisCounterPass() {


Index: llvm/lib/Analysis/BasicAliasAnalysis.cpp
diff -u llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.84 llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.85
--- llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.84	Sun Aug 27 17:42:51 2006
+++ llvm/lib/Analysis/BasicAliasAnalysis.cpp	Sun Aug 27 19:42:29 2006
@@ -76,7 +76,7 @@
   U("no-aa", "No Alias Analysis (always returns 'may' alias)");
 
   // Declare that we implement the AliasAnalysis interface
-  RegisterAnalysisGroup<AliasAnalysis, NoAA> V;
+  RegisterAnalysisGroup<AliasAnalysis> V(U);
 }  // End of anonymous namespace
 
 ImmutablePass *llvm::createNoAAPass() { return new NoAA(); }
@@ -121,7 +121,7 @@
   X("basicaa", "Basic Alias Analysis (default AA impl)");
 
   // Declare that we implement the AliasAnalysis interface
-  RegisterAnalysisGroup<AliasAnalysis, BasicAliasAnalysis, true> Y;
+  RegisterAnalysisGroup<AliasAnalysis, true> Y(X);
 }  // End of anonymous namespace
 
 ImmutablePass *llvm::createBasicAliasAnalysisPass() {


Index: llvm/lib/Analysis/LoadValueNumbering.cpp
diff -u llvm/lib/Analysis/LoadValueNumbering.cpp:1.35 llvm/lib/Analysis/LoadValueNumbering.cpp:1.36
--- llvm/lib/Analysis/LoadValueNumbering.cpp:1.35	Sun Aug 27 17:42:51 2006
+++ llvm/lib/Analysis/LoadValueNumbering.cpp	Sun Aug 27 19:42:29 2006
@@ -84,7 +84,7 @@
   RegisterPass<LoadVN> X("load-vn", "Load Value Numbering");
 
   // Declare that we implement the ValueNumbering interface
-  RegisterAnalysisGroup<ValueNumbering, LoadVN> Y;
+  RegisterAnalysisGroup<ValueNumbering> Y(X);
 }
 
 FunctionPass *llvm::createLoadValueNumberingPass() { return new LoadVN(); }


Index: llvm/lib/Analysis/ProfileInfo.cpp
diff -u llvm/lib/Analysis/ProfileInfo.cpp:1.8 llvm/lib/Analysis/ProfileInfo.cpp:1.9
--- llvm/lib/Analysis/ProfileInfo.cpp:1.8	Sun Aug 27 17:42:51 2006
+++ llvm/lib/Analysis/ProfileInfo.cpp	Sun Aug 27 19:42:29 2006
@@ -89,7 +89,7 @@
   X("no-profile", "No Profile Information");
 
   // Declare that we implement the ProfileInfo interface
-  RegisterAnalysisGroup<ProfileInfo, NoProfileInfo, true> Y;
+  RegisterAnalysisGroup<ProfileInfo, true> Y(X);
 }  // End of anonymous namespace
 
 ImmutablePass *llvm::createNoProfileInfoPass() { return new NoProfileInfo(); }


Index: llvm/lib/Analysis/ProfileInfoLoaderPass.cpp
diff -u llvm/lib/Analysis/ProfileInfoLoaderPass.cpp:1.14 llvm/lib/Analysis/ProfileInfoLoaderPass.cpp:1.15
--- llvm/lib/Analysis/ProfileInfoLoaderPass.cpp:1.14	Sun Aug 27 17:42:51 2006
+++ llvm/lib/Analysis/ProfileInfoLoaderPass.cpp	Sun Aug 27 19:42:29 2006
@@ -52,7 +52,7 @@
   RegisterPass<LoaderPass>
   X("profile-loader", "Load profile information from llvmprof.out");
 
-  RegisterAnalysisGroup<ProfileInfo, LoaderPass> Y;
+  RegisterAnalysisGroup<ProfileInfo> Y(X);
 }  // End of anonymous namespace
 
 ModulePass *llvm::createProfileLoaderPass() { return new LoaderPass(); }


Index: llvm/lib/Analysis/ValueNumbering.cpp
diff -u llvm/lib/Analysis/ValueNumbering.cpp:1.20 llvm/lib/Analysis/ValueNumbering.cpp:1.21
--- llvm/lib/Analysis/ValueNumbering.cpp:1.20	Sun Aug 27 17:42:51 2006
+++ llvm/lib/Analysis/ValueNumbering.cpp	Sun Aug 27 19:42:29 2006
@@ -64,7 +64,7 @@
   X("basicvn", "Basic Value Numbering (default GVN impl)");
 
   // Declare that we implement the ValueNumbering interface
-  RegisterAnalysisGroup<ValueNumbering, BasicVN, true> Y;
+  RegisterAnalysisGroup<ValueNumbering, true> Y(X);
 
   /// BVNImpl - Implement BasicVN in terms of a visitor class that
   /// handles the different types of instructions as appropriate.






More information about the llvm-commits mailing list