[llvm-commits] [gcc-plugin] r81557 - /gcc-plugin/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Fri Sep 11 12:56:56 PDT 2009
Author: baldrick
Date: Fri Sep 11 14:56:55 2009
New Revision: 81557
URL: http://llvm.org/viewvc/llvm-project?rev=81557&view=rev
Log:
When not optimizing, use the local register allocator.
This greatly speeds up -O0 compiles!
Modified:
gcc-plugin/trunk/llvm-backend.cpp
Modified: gcc-plugin/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-backend.cpp?rev=81557&r1=81556&r2=81557&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-backend.cpp (original)
+++ gcc-plugin/trunk/llvm-backend.cpp Fri Sep 11 14:56:55 2009
@@ -475,10 +475,10 @@
TheModule->setDataLayout(TheTarget->getTargetData()->
getStringRepresentation());
-//TODO if (optimize)
-//TODO RegisterRegAlloc::setDefault(createLinearScanRegisterAllocator);
-//TODO else
-//TODO RegisterRegAlloc::setDefault(createLocalRegisterAllocator);
+ if (optimize)
+ RegisterRegAlloc::setDefault(createLinearScanRegisterAllocator);
+ else
+ RegisterRegAlloc::setDefault(createLocalRegisterAllocator);
//TODO // FIXME - Do not disable debug info while writing pch.
//TODO if (!flag_pch_file &&
More information about the llvm-commits
mailing list