RegisterRegAlloc::setDefault(RegAlloc);
}
- // This forces linking of the greedy register allocator, so -regalloc=greedy
- // works in clang.
- if (Ctor == createGreedyRegisterAllocator)
- return createGreedyRegisterAllocator();
-
if (Ctor != createDefaultRegisterAllocator)
return Ctor();
case CodeGenOpt::None:
return createFastRegisterAllocator();
default:
- return createLinearScanRegisterAllocator();
+ return createGreedyRegisterAllocator();
}
}