Print SSA and liveness tracking flags in MF::print().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 27 Mar 2012 17:17:16 +0000 (17:17 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 27 Mar 2012 17:17:16 +0000 (17:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153518 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineFunction.cpp

index 8ab8b1845170502817ee2dcd9b5defd901c7e374..64e0083017b048fdd3e90d82f27304a3106f0471 100644 (file)
@@ -284,7 +284,13 @@ void MachineFunction::dump() const {
 }
 
 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);