mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +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.
|
// When the 'default' allocator is requested, pick one based on OptLevel.
|
||||||
switch (OptLevel) {
|
switch (OptLevel) {
|
||||||
case CodeGenOpt::None:
|
case CodeGenOpt::None:
|
||||||
return createLocalRegisterAllocator();
|
return createFastRegisterAllocator();
|
||||||
default:
|
default:
|
||||||
return createLinearScanRegisterAllocator();
|
return createLinearScanRegisterAllocator();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user