[llvm-commits] [poolalloc] r62693 - /poolalloc/trunk/include/dsa/DataStructure.h
John Criswell
criswell at uiuc.edu
Wed Jan 21 08:03:36 PST 2009
Author: criswell
Date: Wed Jan 21 10:03:35 2009
New Revision: 62693
URL: http://llvm.org/viewvc/llvm-project?rev=62693&view=rev
Log:
The Top-Down DSA pass copies the DSGraph of the Bottom-Up DSA pass; therefore,
it can mark it as a preserved pass.
This fixes the DSA alias analysis pass.
Modified:
poolalloc/trunk/include/dsa/DataStructure.h
Modified: poolalloc/trunk/include/dsa/DataStructure.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/dsa/DataStructure.h?rev=62693&r1=62692&r2=62693&view=diff
==============================================================================
--- poolalloc/trunk/include/dsa/DataStructure.h (original)
+++ poolalloc/trunk/include/dsa/DataStructure.h Wed Jan 21 10:03:35 2009
@@ -355,10 +355,12 @@
/// getAnalysisUsage - This obviously provides a data structure graph.
///
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- if (useEQBU)
+ if (useEQBU) {
AU.addRequired<EquivBUDataStructures>();
- else
+ } else {
AU.addRequired<BUDataStructures>();
+ AU.addPreserved<BUDataStructures>();
+ }
AU.addPreserved<TargetData>();
AU.setPreservesCFG();
}
More information about the llvm-commits
mailing list