Make -print-machineinstrs show us the code both before and after reg. alloc.

llvm-svn: 12344
This commit is contained in:
Brian Gaeke 2004-03-12 21:19:08 +00:00
parent 5582d9fa8c
commit 5bc633f691

View File

@ -161,10 +161,13 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
if (!DisableSched)
PM.add(createInstructionSchedulingWithSSAPass(*this));
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(&std::cerr, "Before reg alloc:\n"));
PM.add(getRegisterAllocator(*this));
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(&std::cerr));
PM.add(createMachineFunctionPrinterPass(&std::cerr, "After reg alloc:\n"));
PM.add(createPrologEpilogInsertionPass());