[llvm-commits] [llvm] r153518 - /llvm/trunk/lib/CodeGen/MachineFunction.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Mar 27 10:17:17 PDT 2012
Author: stoklund
Date: Tue Mar 27 12:17:16 2012
New Revision: 153518
URL: http://llvm.org/viewvc/llvm-project?rev=153518&view=rev
Log:
Print SSA and liveness tracking flags in MF::print().
Modified:
llvm/trunk/lib/CodeGen/MachineFunction.cpp
Modified: llvm/trunk/lib/CodeGen/MachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFunction.cpp?rev=153518&r1=153517&r2=153518&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFunction.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFunction.cpp Tue Mar 27 12:17:16 2012
@@ -284,7 +284,13 @@
}
void MachineFunction::print(raw_ostream &OS, SlotIndexes *Indexes) const {
- OS << "# Machine code for function " << Fn->getName() << ":\n";
+ OS << "# Machine code for function " << Fn->getName() << ": ";
+ if (RegInfo) {
+ OS << (RegInfo->isSSA() ? "SSA" : "Post SSA");
+ if (!RegInfo->tracksLiveness())
+ OS << ", not tracking liveness";
+ }
+ OS << '\n';
// Print Frame Information
FrameInfo->print(*this, OS);
More information about the llvm-commits
mailing list