From 0c209430b4722f741b0f99bbe8f480e2ba4ffd59 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 4 Jan 2008 20:54:55 +0000 Subject: Don't recalculate the loop info and loop dominators analyses if they're preserved. llvm-svn: 45596 --- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp') diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index dd71bec..8f0c473 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(); AU.addPreserved(); + AU.addPreservedID(MachineLoopInfoID); + AU.addPreservedID(MachineDominatorsID); AU.addPreservedID(PHIEliminationID); MachineFunctionPass::getAnalysisUsage(AU); } -- cgit v1.1