mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-21 02:59:15 +00:00
Make -print-machineinstrs show us the code both before and after reg. alloc.
llvm-svn: 12344
This commit is contained in:
parent
5582d9fa8c
commit
5bc633f691
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user