[llvm-commits] [llvm] r105372 - /llvm/trunk/lib/CodeGen/Passes.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Jun 2 17:39:06 PDT 2010
Author: stoklund
Date: Wed Jun 2 19:39:06 2010
New Revision: 105372
URL: http://llvm.org/viewvc/llvm-project?rev=105372&view=rev
Log:
Use the fast register allocator by default for -O0 builds.
This affects both llvm-gcc and clang.
Modified:
llvm/trunk/lib/CodeGen/Passes.cpp
Modified: llvm/trunk/lib/CodeGen/Passes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/Passes.cpp?rev=105372&r1=105371&r2=105372&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/Passes.cpp (original)
+++ llvm/trunk/lib/CodeGen/Passes.cpp Wed Jun 2 19:39:06 2010
@@ -61,7 +61,7 @@
// When the 'default' allocator is requested, pick one based on OptLevel.
switch (OptLevel) {
case CodeGenOpt::None:
- return createLocalRegisterAllocator();
+ return createFastRegisterAllocator();
default:
return createLinearScanRegisterAllocator();
}
More information about the llvm-commits
mailing list