[llvm-commits] [llvm-gcc-4.2] r105003 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri May 28 14:14:01 PDT 2010
Author: stoklund
Date: Fri May 28 16:14:01 2010
New Revision: 105003
URL: http://llvm.org/viewvc/llvm-project?rev=105003&view=rev
Log:
Let LLVMTargetMachine decide which register allocator to use.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=105003&r1=105002&r2=105003&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Fri May 28 16:14:01 2010
@@ -524,11 +524,6 @@
TheModule->setDataLayout(TheTarget->getTargetData()->
getStringRepresentation());
- if (optimize)
- RegisterRegAlloc::setDefault(createLinearScanRegisterAllocator);
- else
- RegisterRegAlloc::setDefault(createLocalRegisterAllocator);
-
if (debug_info_level > DINFO_LEVEL_NONE)
TheDebugInfo = new DebugInfo(TheModule);
}
More information about the llvm-commits
mailing list