From 964bc25e5a03be208427ce2ebadb22a42681ef9c Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Wed, 3 Nov 2010 20:39:26 +0000 Subject: [PATCH] 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 --- lib/CodeGen/RegAllocBasic.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/CodeGen/RegAllocBasic.cpp b/lib/CodeGen/RegAllocBasic.cpp index 83999d9eb13..6c592c8e25e 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(); au.addRequired(); au.addPreserved(); + au.addRequiredID(MachineDominatorsID); + au.addPreservedID(MachineDominatorsID); au.addRequired(); au.addPreserved(); au.addRequired();