summaryrefslogtreecommitdiff
path: root/include/llvm/InitializePasses.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-09 02:13:10 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-09 02:13:10 +0000
commit8879480ed708ffa51d23f423ec316763c7cb9577 (patch)
treeb6357f6d886ee396dc07842c560067f7106806d0 /include/llvm/InitializePasses.h
parentb9bfe48e0ab8f1d855eb513dc47082a983882ce3 (diff)
downloadllvm-8879480ed708ffa51d23f423ec316763c7cb9577.tar.gz
llvm-8879480ed708ffa51d23f423ec316763c7cb9577.tar.bz2
llvm-8879480ed708ffa51d23f423ec316763c7cb9577.tar.xz
Sketch a LiveRegMatrix analysis pass.
The LiveRegMatrix represents the live range of assigned virtual registers in a Live interval union per register unit. This is not fundamentally different from the interference tracking in RegAllocBase that both RABasic and RAGreedy use. The important differences are: - LiveRegMatrix tracks interference per register unit instead of per physical register. This makes interference checks cheaper and assignments slightly more expensive. For example, the ARM D7 reigster has 24 aliases, so we would check 24 physregs before assigning to one. With unit-based interference, we check 2 units before assigning to 2 units. - LiveRegMatrix caches regmask interference checks. That is currently duplicated functionality in RABasic and RAGreedy. - LiveRegMatrix is a pass which makes it possible to insert target-dependent passes between register allocation and rewriting. Such passes could tweak the register assignments with interference checking support from LiveRegMatrix. Eventually, RABasic and RAGreedy will be switched to LiveRegMatrix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158255 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 67f2fa496d..1b8bd79eca 100644
--- a/include/llvm/InitializePasses.h
+++ b/include/llvm/InitializePasses.h
@@ -136,6 +136,7 @@ void initializeLibCallAliasAnalysisPass(PassRegistry&);
void initializeLintPass(PassRegistry&);
void initializeLiveDebugVariablesPass(PassRegistry&);
void initializeLiveIntervalsPass(PassRegistry&);
+void initializeLiveRegMatrixPass(PassRegistry&);
void initializeLiveStacksPass(PassRegistry&);
void initializeLiveVariablesPass(PassRegistry&);
void initializeLoaderPassPass(PassRegistry&);