diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-11-03 20:39:26 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-11-03 20:39:26 +0000 |
commit | 964bc25e5a03be208427ce2ebadb22a42681ef9c (patch) | |
tree | 4acfc1342aa797befda923205dc485a4e99593d4 /lib | |
parent | 376dcbd6c2c7adb8281f89d045b307eee7bd682a (diff) | |
download | external_llvm-964bc25e5a03be208427ce2ebadb22a42681ef9c.zip external_llvm-964bc25e5a03be208427ce2ebadb22a42681ef9c.tar.gz external_llvm-964bc25e5a03be208427ce2ebadb22a42681ef9c.tar.bz2 |
Let RegAllocBasic require MachineDominators - they are already available and
splitting needs them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/RegAllocBasic.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocBasic.cpp b/lib/CodeGen/RegAllocBasic.cpp index 83999d9..6c592c8 100644 --- a/lib/CodeGen/RegAllocBasic.cpp +++ b/lib/CodeGen/RegAllocBasic.cpp @@ -120,6 +120,7 @@ RABasic::RABasic(): MachineFunctionPass(ID) { initializeRegisterCoalescerAnalysisGroup(*PassRegistry::getPassRegistry()); initializeCalculateSpillWeightsPass(*PassRegistry::getPassRegistry()); initializeLiveStacksPass(*PassRegistry::getPassRegistry()); + initializeMachineDominatorTreePass(*PassRegistry::getPassRegistry()); initializeMachineLoopInfoPass(*PassRegistry::getPassRegistry()); initializeVirtRegMapPass(*PassRegistry::getPassRegistry()); initializeRenderMachineFunctionPass(*PassRegistry::getPassRegistry()); @@ -135,6 +136,8 @@ void RABasic::getAnalysisUsage(AnalysisUsage &au) const { au.addRequired<CalculateSpillWeights>(); au.addRequired<LiveStacks>(); au.addPreserved<LiveStacks>(); + au.addRequiredID(MachineDominatorsID); + au.addPreservedID(MachineDominatorsID); au.addRequired<MachineLoopInfo>(); au.addPreserved<MachineLoopInfo>(); au.addRequired<VirtRegMap>(); |