[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Thu Dec 7 10:41:24 PST 2006
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.36 -> 1.37
---
Log message:
s/clearAnalysis/initializeAnalysisInfo/g
---
Diffs of the changes: (+6 -7)
PassManager.cpp | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.36 llvm/lib/VMCore/PassManager.cpp:1.37
--- llvm/lib/VMCore/PassManager.cpp:1.36 Thu Dec 7 12:36:24 2006
+++ llvm/lib/VMCore/PassManager.cpp Thu Dec 7 12:41:09 2006
@@ -123,9 +123,8 @@
/// AvailableAnalysis appropriately if ProcessAnalysis is true.
void addPassToManager (Pass *P, bool ProcessAnalysis = true);
- /// Clear analysis vectors RequiredAnalysis and AvailableAnalysis.
- /// This is used before running passes managed by the manager.
- void clearAnalysis() {
+ // Initialize available analysis information.
+ void initializeAnalysisInfo() {
RequiredAnalysis.clear();
AvailableAnalysis.clear();
LastUser.clear();
@@ -455,7 +454,7 @@
BasicBlockPassManager_New::runOnFunction(Function &F) {
bool Changed = false;
- clearAnalysis();
+ initializeAnalysisInfo();
for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
@@ -568,7 +567,7 @@
bool FunctionPassManagerImpl_New::runOnModule(Module &M) {
bool Changed = false;
- clearAnalysis();
+ initializeAnalysisInfo();
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
@@ -590,7 +589,7 @@
bool FunctionPassManagerImpl_New::runOnFunction(Function &F) {
bool Changed = false;
- clearAnalysis();
+ initializeAnalysisInfo();
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
e = passVectorEnd(); itr != e; ++itr) {
@@ -696,7 +695,7 @@
bool
ModulePassManager_New::runOnModule(Module &M) {
bool Changed = false;
- clearAnalysis();
+ initializeAnalysisInfo();
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
e = passVectorEnd(); itr != e; ++itr) {
More information about the llvm-commits
mailing list