mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +00:00
Make -print-machineinstrs show us the code both before and after reg. alloc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12344 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6794d9268b
commit
215fb76865
@ -161,10 +161,13 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
|
|||||||
if (!DisableSched)
|
if (!DisableSched)
|
||||||
PM.add(createInstructionSchedulingWithSSAPass(*this));
|
PM.add(createInstructionSchedulingWithSSAPass(*this));
|
||||||
|
|
||||||
|
if (PrintMachineCode)
|
||||||
|
PM.add(createMachineFunctionPrinterPass(&std::cerr, "Before reg alloc:\n"));
|
||||||
|
|
||||||
PM.add(getRegisterAllocator(*this));
|
PM.add(getRegisterAllocator(*this));
|
||||||
|
|
||||||
if (PrintMachineCode)
|
if (PrintMachineCode)
|
||||||
PM.add(createMachineFunctionPrinterPass(&std::cerr));
|
PM.add(createMachineFunctionPrinterPass(&std::cerr, "After reg alloc:\n"));
|
||||||
|
|
||||||
PM.add(createPrologEpilogInsertionPass());
|
PM.add(createPrologEpilogInsertionPass());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user