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/RegAllocLinearScan.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp') diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 17d416a4a63..6f850eb1b35 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -104,6 +104,8 @@ namespace { // to coalescing and which analyses coalescing invalidates. AU.addRequiredTransitive(); AU.addRequired(); + AU.addPreserved(); + AU.addPreservedID(MachineDominatorsID); MachineFunctionPass::getAnalysisUsage(AU); } -- cgit v1.2.3