diff options
| author | Lang Hames <lhames@gmail.com> | 2009-12-14 06:49:42 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2009-12-14 06:49:42 +0000 |
| commit | d17e296301c2fb3c82a88fcf693b67fb5a59807d (patch) | |
| tree | 162bb768c020af3c3791177a7b83df89168aaff3 /llvm/lib/CodeGen/PreAllocSplitting.cpp | |
| parent | 27f686f8ec09ca1cd4398d17f9458e1d2aaa6a2b (diff) | |
| download | bcm5719-llvm-d17e296301c2fb3c82a88fcf693b67fb5a59807d.tar.gz bcm5719-llvm-d17e296301c2fb3c82a88fcf693b67fb5a59807d.zip | |
Moved spill weight calculation out of SimpleRegisterCoalescing and into its own pass: CalculateSpillWeights.
llvm-svn: 91273
Diffstat (limited to 'llvm/lib/CodeGen/PreAllocSplitting.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PreAllocSplitting.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PreAllocSplitting.cpp b/llvm/lib/CodeGen/PreAllocSplitting.cpp index afd7b882c70..b0d7a4757ef 100644 --- a/llvm/lib/CodeGen/PreAllocSplitting.cpp +++ b/llvm/lib/CodeGen/PreAllocSplitting.cpp @@ -16,6 +16,7 @@ #define DEBUG_TYPE "pre-alloc-split" #include "VirtRegMap.h" +#include "llvm/CodeGen/CalcSpillWeights.h" #include "llvm/CodeGen/LiveIntervalAnalysis.h" #include "llvm/CodeGen/LiveStackAnalysis.h" #include "llvm/CodeGen/MachineDominators.h" @@ -104,6 +105,7 @@ namespace { AU.addRequired<LiveStacks>(); AU.addPreserved<LiveStacks>(); AU.addPreserved<RegisterCoalescer>(); + AU.addPreserved<CalculateSpillWeights>(); if (StrongPHIElim) AU.addPreservedID(StrongPHIEliminationID); else |

