aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-31 23:36:22 +0000
committerDan Gohman <gohman@apple.com>2009-07-31 23:36:22 +0000
commita3477fe06df794e0eae26ea243f25912c619a6c4 (patch)
tree0e5782f260cfcccd869ee37e79b44ef92421ecda
parent2d147c440178044aa2af1d9c276f9c4e540fcb8e (diff)
downloadexternal_llvm-a3477fe06df794e0eae26ea243f25912c619a6c4.zip
external_llvm-a3477fe06df794e0eae26ea243f25912c619a6c4.tar.gz
external_llvm-a3477fe06df794e0eae26ea243f25912c619a6c4.tar.bz2
SelectionDAGISel does not "preserve all", since it makes lots of changes
to the MachineFunction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77753 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 1072c95..301c5a7 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -289,9 +289,11 @@ unsigned SelectionDAGISel::MakeReg(MVT VT) {
void SelectionDAGISel::getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<AliasAnalysis>();
+ AU.addPreserved<AliasAnalysis>();
AU.addRequired<GCModuleInfo>();
+ AU.addPreserved<GCModuleInfo>();
AU.addRequired<DwarfWriter>();
- AU.setPreservesAll();
+ AU.addPreserved<DwarfWriter>();
MachineFunctionPass::getAnalysisUsage(AU);
}