mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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
This commit is contained in:
parent
ead06be02f
commit
8b89c64b5c
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user