summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-03-12 21:19:08 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-03-12 21:19:08 +0000
commit1694dafece05b3c15c34f94dcb1f673d7790906b (patch)
tree34974a40b316a8d8c7e976a9814e8d63a033223a /llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
parenteb55b52a585525cc22630be8080fb5365533b7f4 (diff)
downloadbcm5719-llvm-1694dafece05b3c15c34f94dcb1f673d7790906b.tar.gz
bcm5719-llvm-1694dafece05b3c15c34f94dcb1f673d7790906b.zip
Make -print-machineinstrs show us the code both before and after reg. alloc.
llvm-svn: 12344
Diffstat (limited to 'llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index 485a358b230..e8172c17ab5 100644
--- a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -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());
OpenPOWER on IntegriCloud