diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2010-08-17 21:00:37 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2010-08-17 21:00:37 +0000 |
| commit | 16bfe5b0f59587aecbd16deedc71183f510ef627 (patch) | |
| tree | 8a7dd550da9b05ed8d2ffbe2d2e62c64ceaa29b7 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
| parent | 7940e6fb1d2ba7dfbf089b565bf869b734c6a423 (diff) | |
| download | bcm5719-llvm-16bfe5b0f59587aecbd16deedc71183f510ef627.tar.gz bcm5719-llvm-16bfe5b0f59587aecbd16deedc71183f510ef627.zip | |
PHI elimination shouldn't require machineloopinfo since it's used at -O0. Move the requirement to LiveIntervalAnalysis instead. Note this does not change the number of times machineloopinfo is computed.
llvm-svn: 111285
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 21563c4f9a1..2726fc33753 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -62,9 +62,10 @@ void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesCFG(); AU.addRequired<AliasAnalysis>(); AU.addPreserved<AliasAnalysis>(); - AU.addPreserved<LiveVariables>(); AU.addRequired<LiveVariables>(); - AU.addPreservedID(MachineLoopInfoID); + AU.addPreserved<LiveVariables>(); + AU.addRequired<MachineLoopInfo>(); + AU.addPreserved<MachineLoopInfo>(); AU.addPreservedID(MachineDominatorsID); if (!StrongPHIElim) { |

