[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Tue Jan 16 14:38:25 PST 2007
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.125 -> 1.126
---
Log message:
Pass manager may require certain analysis. In such cases, initially
pass manager is last user.
---
Diffs of the changes: (+2 -3)
PassManager.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.125 llvm/lib/VMCore/PassManager.cpp:1.126
--- llvm/lib/VMCore/PassManager.cpp:1.125 Tue Jan 16 15:43:18 2007
+++ llvm/lib/VMCore/PassManager.cpp Tue Jan 16 16:38:10 2007
@@ -600,10 +600,9 @@
// Set P as P's last user until someone starts using P.
// However, if P is a Pass Manager then it does not need
// to record its last user.
- if (!dynamic_cast<PMDataManager *>(P)) {
+ if (!dynamic_cast<PMDataManager *>(P))
LastUses.push_back(P);
- TPM->setLastUser(LastUses, P);
- }
+ TPM->setLastUser(LastUses, P);
// Take a note of analysis required and made available by this pass.
// Remove the analysis not preserved by this pass
More information about the llvm-commits
mailing list