[cfe-commits] r104984 - /cfe/trunk/lib/Frontend/CodeGenAction.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri May 28 11:13:31 PDT 2010
Author: stoklund
Date: Fri May 28 13:13:31 2010
New Revision: 104984
URL: http://llvm.org/viewvc/llvm-project?rev=104984&view=rev
Log:
Let the backend decide which scheduler and register allocator to use.
Currently, the backend uses the same policy, but it will soon switch to
-regalloc=fast for -O0.
Modified:
cfe/trunk/lib/Frontend/CodeGenAction.cpp
Modified: cfe/trunk/lib/Frontend/CodeGenAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CodeGenAction.cpp?rev=104984&r1=104983&r2=104984&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/Frontend/CodeGenAction.cpp Fri May 28 13:13:31 2010
@@ -237,8 +237,6 @@
return true;
}
- bool Fast = CodeGenOpts.OptimizationLevel == 0;
-
// Create the TargetMachine for generating code.
std::string Error;
std::string Triple = TheModule->getTargetTriple();
@@ -324,11 +322,6 @@
if (CodeGenOpts.RelaxAll)
TM->setMCRelaxAll(true);
- // Set register scheduler & allocation policy.
- RegisterScheduler::setDefault(createDefaultScheduler);
- RegisterRegAlloc::setDefault(Fast ? createLocalRegisterAllocator :
- createLinearScanRegisterAllocator);
-
// Create the code generator passes.
FunctionPassManager *PM = getCodeGenPasses();
CodeGenOpt::Level OptLevel = CodeGenOpt::Default;
More information about the cfe-commits
mailing list