diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-06-03 00:39:06 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-06-03 00:39:06 +0000 |
commit | 8b89c64b5ca469366b8cde5a242ac41c040bb1aa (patch) | |
tree | bd93d57d3942c3aec8b4ee56b76c27b50186538d | |
parent | ead06be02fe6b9a2bf6fbe04237c1276ed0cdb5c (diff) | |
download | external_llvm-8b89c64b5ca469366b8cde5a242ac41c040bb1aa.zip external_llvm-8b89c64b5ca469366b8cde5a242ac41c040bb1aa.tar.gz external_llvm-8b89c64b5ca469366b8cde5a242ac41c040bb1aa.tar.bz2 |
Use the fast register allocator by default for -O0 builds.
This affects both llvm-gcc and clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105372 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/Passes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index 09123fe..3489db2 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -61,7 +61,7 @@ FunctionPass *llvm::createRegisterAllocator(CodeGenOpt::Level OptLevel) { // When the 'default' allocator is requested, pick one based on OptLevel. switch (OptLevel) { case CodeGenOpt::None: - return createLocalRegisterAllocator(); + return createFastRegisterAllocator(); default: return createLinearScanRegisterAllocator(); } |