[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Thu May 20 12:13:04 PDT 2004


Changes in directory reopt/lib/LightWtProfiling:

UnpackTraceFunction.cpp updated: 1.61 -> 1.62

---
Log message:

Print out more debugging information about the mapping info we got from LLC
about the return basic block.


---
Diffs of the changes:  (+8 -2)

Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.61 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.62
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.61	Mon May 17 16:00:19 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp	Thu May 20 12:11:48 2004
@@ -530,8 +530,14 @@
   assert ((TF->ReturnBlockForTraceExit.find (RBB) !=
 		   TF->ReturnBlockForTraceExit.end ())
 		  && "Can't find matrix fn BB address to return to from trace");
-  uint64_t ReturnAddress = 
-	getBasicBlockInfo(TF->ReturnBlockForTraceExit[RBB]).first;
+  std::pair<uint64_t, uint64_t> BlockAddrs =
+    getBasicBlockInfo(TF->ReturnBlockForTraceExit[RBB]);
+  uint64_t ReturnAddress = BlockAddrs.first;
+  DEBUG (std::cerr << "Return block for trace exit path is: "
+         << *TF->ReturnBlockForTraceExit[RBB] << "\n"
+         << "Mapping info says addresses are: return address = 0x"
+         << std::hex << BlockAddrs.first << ", end of block = 0x"
+         << BlockAddrs.second << std::dec << "\n");
   // Insert a branch back to the return BasicBlock of the matrix fn.
   insertBranchMachineInstrs (ReturnAddress, MBB);
 }





More information about the llvm-commits mailing list