summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-01-04 20:54:55 +0000
committerBill Wendling <isanbard@gmail.com>2008-01-04 20:54:55 +0000
commit0c209430b4722f741b0f99bbe8f480e2ba4ffd59 (patch)
treed3bebf55548c56d04f33a1b7ca1981a78604748f /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parent2bd541c5ffec3f2685afac21ceab42b967fef0cc (diff)
downloadbcm5719-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/RegAllocLinearScan.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp2
1 files changed, 2 insertions, 0 deletions
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<RegisterCoalescer>();
AU.addRequired<MachineLoopInfo>();
+ AU.addPreserved<MachineLoopInfo>();
+ AU.addPreservedID(MachineDominatorsID);
MachineFunctionPass::getAnalysisUsage(AU);
}
OpenPOWER on IntegriCloud