[llvm-commits] [poolalloc] r76892 - in /poolalloc/trunk/lib/PoolAllocate: PAMultipleGlobalPool.cpp PoolAllocate.cpp

John Criswell criswell at uiuc.edu
Thu Jul 23 11:46:22 PDT 2009


Author: criswell
Date: Thu Jul 23 13:45:32 2009
New Revision: 76892

URL: http://llvm.org/viewvc/llvm-project?rev=76892&view=rev
Log:
When requesting DSA analysis results, use addRequiredTransitive().
This should tell the PassManager to keep the DSA results passes alive as long
as the PoolAllocation pass is alive, allowing the PoolAllocation passes to
utilize DSA results when handling client requests.

Modified:
    poolalloc/trunk/lib/PoolAllocate/PAMultipleGlobalPool.cpp
    poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp

Modified: poolalloc/trunk/lib/PoolAllocate/PAMultipleGlobalPool.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PAMultipleGlobalPool.cpp?rev=76892&r1=76891&r2=76892&view=diff

==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PAMultipleGlobalPool.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PAMultipleGlobalPool.cpp Thu Jul 23 13:45:32 2009
@@ -73,7 +73,7 @@
 
 void PoolAllocateMultipleGlobalPool::getAnalysisUsage(AnalysisUsage &AU) const {
   AU.addRequired<TargetData>();
-  AU.addRequired<SteensgaardDataStructures>();
+  AU.addRequiredTransitive<SteensgaardDataStructures>();
   // It is a big lie.
   AU.setPreservesAll();
 }

Modified: poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp?rev=76892&r1=76891&r2=76892&view=diff

==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp Thu Jul 23 13:45:32 2009
@@ -90,11 +90,11 @@
 
 void PoolAllocate::getAnalysisUsage(AnalysisUsage &AU) const {
   if (dsa_pass_to_use == PASS_EQTD) {
-    AU.addRequired<EQTDDataStructures>();
+    AU.addRequiredTransitive<EQTDDataStructures>();
     if(lie_preserve_passes != LIE_NONE)
     	AU.addPreserved<EQTDDataStructures>();
   } else {
-    AU.addRequired<EquivBUDataStructures>();
+    AU.addRequiredTransitive<EquivBUDataStructures>();
     if(lie_preserve_passes != LIE_NONE)
     	AU.addPreserved<EquivBUDataStructures>();
   }





More information about the llvm-commits mailing list