Use the fast register allocator by default for -O0 builds.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 3 Jun 2010 00:39:06 +0000 (00:39 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 3 Jun 2010 00:39:06 +0000 (00:39 +0000)
This affects both llvm-gcc and clang.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105372 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/Passes.cpp

index 09123fe1b1e7feababf14a944f42bbc45afa212b..3489db2e9f4f966a401ff9c7ac1ccbf1e58b2f62 100644 (file)
@@ -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();
   }