diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-01-04 20:54:55 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-01-04 20:54:55 +0000 |
commit | 6226436fd365f491a87914451dcd2b04137994e9 (patch) | |
tree | 18e75f184bc456659e065bd81df678486e1f3c3d /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | b549333d968f6fcddad77e3689542e0402ccebdc (diff) | |
download | external_llvm-6226436fd365f491a87914451dcd2b04137994e9.zip external_llvm-6226436fd365f491a87914451dcd2b04137994e9.tar.gz external_llvm-6226436fd365f491a87914451dcd2b04137994e9.tar.bz2 |
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/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 46cdec7..5c9d69a 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -60,6 +60,8 @@ namespace { void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const { AU.addPreserved<LiveVariables>(); AU.addRequired<LiveVariables>(); + AU.addPreservedID(MachineLoopInfoID); + AU.addPreservedID(MachineDominatorsID); AU.addPreservedID(PHIEliminationID); AU.addRequiredID(PHIEliminationID); AU.addRequiredID(TwoAddressInstructionPassID); |