aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit03354410a05e9b2d4af041326bcc7c363880e703 (patch)
tree0e5782f260cfcccd869ee37e79b44ef92421ecda /lib
parentb067fe1f969786a0971638338e4122fe78d81595 (diff)
downloadexternal_llvm-03354410a05e9b2d4af041326bcc7c363880e703.tar.gz
external_llvm-03354410a05e9b2d4af041326bcc7c363880e703.tar.bz2
external_llvm-03354410a05e9b2d4af041326bcc7c363880e703.zip
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
Diffstat (limited to 'lib')
-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 1072c95acd..301c5a7262 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);
}