[llvm] r265754 - [RegisterBankInfo] Make the debug output more compact.

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 17:03:49 PDT 2016


Author: qcolombet
Date: Thu Apr  7 19:03:49 2016
New Revision: 265754

URL: http://llvm.org/viewvc/llvm-project?rev=265754&view=rev
Log:
[RegisterBankInfo] Make the debug output more compact.

Print the mask of the partial mapping as an hexadecimal instead of a
binary value.

Modified:
    llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp

Modified: llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp?rev=265754&r1=265753&r2=265754&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp Thu Apr  7 19:03:49 2016
@@ -364,7 +364,7 @@ void RegisterBankInfo::PartialMapping::v
 
 void RegisterBankInfo::PartialMapping::print(raw_ostream &OS) const {
   SmallString<128> MaskStr;
-  Mask.toString(MaskStr, /*Radix*/ 2, /*Signed*/ 0, /*formatAsCLiteral*/ true);
+  Mask.toString(MaskStr, /*Radix*/ 16, /*Signed*/ 0, /*formatAsCLiteral*/ true);
   OS << "Mask(" << Mask.getBitWidth() << ") = " << MaskStr << ", RegBank = ";
   if (RegBank)
     OS << *RegBank;




More information about the llvm-commits mailing list