Because of the laziness, the required passes must exist even after
authorNick Lewycky <nicholas@mxc.ca>
Mon, 30 Jun 2008 01:04:39 +0000 (01:04 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 30 Jun 2008 01:04:39 +0000 (01:04 +0000)
LoopVR::runOnFunction runs.

This should accomplish that, but it doesn't. I think that's a PassManager bug,
but without a consumer of LoopVR in the tree, I can't give steps to reproduce.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52886 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/LoopVR.h

index ce9d95b40f6194add03b703f1e1dbeb971cc49e3..db260c435073ba5f8967c682b8000b0d86aeb9ad 100644 (file)
@@ -37,8 +37,8 @@ public:
   void releaseMemory();
 
   void getAnalysisUsage(AnalysisUsage &AU) const {
-    AU.addRequired<LoopInfo>();
-    AU.addRequired<ScalarEvolution>();
+    AU.addRequiredTransitive<LoopInfo>();
+    AU.addRequiredTransitive<ScalarEvolution>();
     AU.setPreservesAll();
   }