aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SimpleRegisterCoalescing.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-01-04 20:54:55 +0000
committerBill Wendling <isanbard@gmail.com>2008-01-04 20:54:55 +0000
commit6226436fd365f491a87914451dcd2b04137994e9 (patch)
tree18e75f184bc456659e065bd81df678486e1f3c3d /lib/CodeGen/SimpleRegisterCoalescing.cpp
parentb549333d968f6fcddad77e3689542e0402ccebdc (diff)
downloadexternal_llvm-6226436fd365f491a87914451dcd2b04137994e9.tar.gz
external_llvm-6226436fd365f491a87914451dcd2b04137994e9.tar.bz2
external_llvm-6226436fd365f491a87914451dcd2b04137994e9.zip
Don't recalculate the loop info and loop dominators analyses if they're
preserved. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 69dd56d843..de94688e3a 100644
--- a/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -67,6 +67,8 @@ const PassInfo *llvm::SimpleRegisterCoalescingID = X.getPassInfo();
void SimpleRegisterCoalescing::getAnalysisUsage(AnalysisUsage &AU) const {
AU.addPreserved<LiveIntervals>();
+ AU.addPreserved<MachineLoopInfo>();
+ AU.addPreservedID(MachineDominatorsID);
AU.addPreservedID(PHIEliminationID);
AU.addPreservedID(TwoAddressInstructionPassID);
AU.addRequired<LiveVariables>();