diff options
author | Lang Hames <lhames@gmail.com> | 2013-07-01 20:47:47 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2013-07-01 20:47:47 +0000 |
commit | 781f5b3953a6ffcf878cebecf1f121a237eff5ba (patch) | |
tree | 69824f654ac084058333fb71edff2bb0c00bfa88 | |
parent | 2f8a1769e4098050baea02742d3cfb4438420019 (diff) | |
download | external_llvm-781f5b3953a6ffcf878cebecf1f121a237eff5ba.zip external_llvm-781f5b3953a6ffcf878cebecf1f121a237eff5ba.tar.gz external_llvm-781f5b3953a6ffcf878cebecf1f121a237eff5ba.tar.bz2 |
Make PBQP require/preserve MachineLoopInfo - the spiller requires it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185378 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/RegAllocPBQP.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index ecfe6ad..81ecca1 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -43,6 +43,7 @@ #include "llvm/CodeGen/MachineBlockFrequencyInfo.h" #include "llvm/CodeGen/MachineDominators.h" #include "llvm/CodeGen/MachineFunctionPass.h" +#include "llvm/CodeGen/MachineLoopInfo.h" #include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/CodeGen/PBQP/Graph.h" #include "llvm/CodeGen/PBQP/HeuristicSolver.h" @@ -436,6 +437,8 @@ void RegAllocPBQP::getAnalysisUsage(AnalysisUsage &au) const { au.addPreserved<LiveStacks>(); au.addRequired<MachineBlockFrequencyInfo>(); au.addPreserved<MachineBlockFrequencyInfo>(); + au.addRequired<MachineLoopInfo>(); + au.addPreserved<MachineLoopInfo>(); au.addRequired<MachineDominatorTree>(); au.addPreserved<MachineDominatorTree>(); au.addRequired<VirtRegMap>(); |