diff options
author | Andrew Trick <atrick@apple.com> | 2012-02-13 20:44:42 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-02-13 20:44:42 +0000 |
commit | 5188c0020c4c16cc4daab5ef4d2458f6c21322c2 (patch) | |
tree | 94d2414c0a381b955bd1febd8af9a1506bac3e1c /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 5dc3a6936d621af6c94e1006001810b9d6c2a6b2 (diff) | |
download | bcm5719-llvm-5188c0020c4c16cc4daab5ef4d2458f6c21322c2.tar.gz bcm5719-llvm-5188c0020c4c16cc4daab5ef4d2458f6c21322c2.zip |
LiveIntervalAnalysis does not depend on MachineLoopInfo.
llvm-svn: 150411
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 5b899e082b3..64bbf1e7816 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -21,7 +21,6 @@ #include "llvm/Analysis/AliasAnalysis.h" #include "llvm/CodeGen/LiveVariables.h" #include "llvm/CodeGen/MachineInstr.h" -#include "llvm/CodeGen/MachineLoopInfo.h" #include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/CodeGen/Passes.h" #include "llvm/Target/TargetRegisterInfo.h" @@ -31,6 +30,7 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" +#include "llvm/ADT/DenseSet.h" #include "llvm/ADT/Statistic.h" #include "llvm/ADT/STLExtras.h" #include <algorithm> @@ -49,7 +49,6 @@ INITIALIZE_PASS_BEGIN(LiveIntervals, "liveintervals", "Live Interval Analysis", false, false) INITIALIZE_AG_DEPENDENCY(AliasAnalysis) INITIALIZE_PASS_DEPENDENCY(LiveVariables) -INITIALIZE_PASS_DEPENDENCY(MachineLoopInfo) INITIALIZE_PASS_DEPENDENCY(MachineDominatorTree) INITIALIZE_PASS_DEPENDENCY(SlotIndexes) INITIALIZE_PASS_END(LiveIntervals, "liveintervals", @@ -61,8 +60,7 @@ void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const { AU.addPreserved<AliasAnalysis>(); AU.addRequired<LiveVariables>(); AU.addPreserved<LiveVariables>(); - AU.addRequired<MachineLoopInfo>(); - AU.addPreserved<MachineLoopInfo>(); + AU.addPreservedID(MachineLoopInfoID); AU.addPreservedID(MachineDominatorsID); AU.addPreserved<SlotIndexes>(); AU.addRequiredTransitive<SlotIndexes>(); |