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 | 0c209430b4722f741b0f99bbe8f480e2ba4ffd59 (patch) | |
tree | d3bebf55548c56d04f33a1b7ca1981a78604748f /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | 2bd541c5ffec3f2685afac21ceab42b967fef0cc (diff) | |
download | bcm5719-llvm-0c209430b4722f741b0f99bbe8f480e2ba4ffd59.tar.gz bcm5719-llvm-0c209430b4722f741b0f99bbe8f480e2ba4ffd59.zip |
Don't recalculate the loop info and loop dominators analyses if they're
preserved.
llvm-svn: 45596
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index dd71bec7eb8..8f0c473d48d 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -69,6 +69,8 @@ const PassInfo *llvm::TwoAddressInstructionPassID = X.getPassInfo(); void TwoAddressInstructionPass::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<LiveVariables>(); AU.addPreserved<LiveVariables>(); + AU.addPreservedID(MachineLoopInfoID); + AU.addPreservedID(MachineDominatorsID); AU.addPreservedID(PHIEliminationID); MachineFunctionPass::getAnalysisUsage(AU); } |