[llvm-commits] [llvm-gcc-4.0] r42500 - /llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
Evan Cheng
evan.cheng at apple.com
Mon Oct 1 13:45:17 PDT 2007
Author: evancheng
Date: Mon Oct 1 15:45:17 2007
New Revision: 42500
URL: http://llvm.org/viewvc/llvm-project?rev=42500&view=rev
Log:
- Always use default scheduler even at -O0.
- Use local register allocator at -O0.
Modified:
llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp?rev=42500&r1=42499&r2=42500&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp Mon Oct 1 15:45:17 2007
@@ -185,14 +185,13 @@
// optimizer use.
TheModule->setDataLayout(TheTarget->getTargetData()->
getStringRepresentation());
+
+ RegisterScheduler::setDefault(createDefaultScheduler);
- if (optimize) {
- RegisterScheduler::setDefault(createDefaultScheduler);
- } else {
- RegisterScheduler::setDefault(createBFS_DAGScheduler);
- }
-
- RegisterRegAlloc::setDefault(createLinearScanRegisterAllocator);
+ if (optimize)
+ RegisterRegAlloc::setDefault(createLinearScanRegisterAllocator);
+ else
+ RegisterRegAlloc::setDefault(createLocalRegisterAllocator);
if (!optimize && debug_info_level > DINFO_LEVEL_NONE)
TheDebugInfo = new DebugInfo(TheModule);
More information about the llvm-commits
mailing list