summaryrefslogtreecommitdiff
path: root/include/llvm/InitializePasses.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-01-06 01:21:53 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-01-06 01:21:53 +0000
commit8bfe50871f9cb1b022483e0e1307ab5b8c9e5650 (patch)
tree7592b8d248dae5cc9576b9d7a315230bccffd99d /include/llvm/InitializePasses.h
parent05e353c4eda22c99967453029dfa7de276409951 (diff)
downloadllvm-8bfe50871f9cb1b022483e0e1307ab5b8c9e5650.tar.gz
llvm-8bfe50871f9cb1b022483e0e1307ab5b8c9e5650.tar.bz2
llvm-8bfe50871f9cb1b022483e0e1307ab5b8c9e5650.tar.xz
Add the SpillPlacement analysis pass.
This pass precomputes CFG block frequency information that can be used by the register allocator to find optimal spill code placement. Given an interference pattern, placeSpills() will compute which basic blocks should have the current variable enter or exit in a register, and which blocks prefer the stack. The algorithm is ready to consume block frequencies from profiling data, but for now it gets by with the static estimates used for spill weights. This is a work in progress and still not hooked up to RegAllocGreedy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/InitializePasses.h')
-rw-r--r--include/llvm/InitializePasses.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/InitializePasses.h b/include/llvm/InitializePasses.h
index dc45716328..0781280976 100644
--- a/include/llvm/InitializePasses.h
+++ b/include/llvm/InitializePasses.h
@@ -203,6 +203,7 @@ void initializeSimplifyLibCallsPass(PassRegistry&);
void initializeSingleLoopExtractorPass(PassRegistry&);
void initializeSinkingPass(PassRegistry&);
void initializeSlotIndexesPass(PassRegistry&);
+void initializeSpillPlacementPass(PassRegistry&);
void initializeStackProtectorPass(PassRegistry&);
void initializeStackSlotColoringPass(PassRegistry&);
void initializeStripDeadDebugInfoPass(PassRegistry&);