diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-11-12 22:39:45 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-11-12 22:39:45 +0000 |
commit | 799c1ede712854f56ed85b74702e611b88b49436 (patch) | |
tree | e4cc372b120f067a4358f3af4f7a54e350e42a53 /lib/CodeGen/Passes.cpp | |
parent | fe9dd87783601db515e39619508ea8fb2c017557 (diff) | |
download | external_llvm-799c1ede712854f56ed85b74702e611b88b49436.zip external_llvm-799c1ede712854f56ed85b74702e611b88b49436.tar.gz external_llvm-799c1ede712854f56ed85b74702e611b88b49436.tar.bz2 |
Delete the linear scan register allocator.
RegAllocGreedy has been the default for six months now.
Deleting RegAllocLinearScan makes it possible to also delete
VirtRegRewriter and clean up the spiller code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Passes.cpp')
-rw-r--r-- | lib/CodeGen/Passes.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index 315aedd..5f57088 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -55,11 +55,6 @@ FunctionPass *llvm::createRegisterAllocator(CodeGenOpt::Level OptLevel) { RegisterRegAlloc::setDefault(RegAlloc); } - // This forces linking of the linear scan register allocator, - // so -regalloc=linearscan still works in clang. - if (Ctor == createLinearScanRegisterAllocator) - return createLinearScanRegisterAllocator(); - if (Ctor != createDefaultRegisterAllocator) return Ctor(); |