[llvm] r272210 - [RegBankSelect] Print out the actual mapping of the operands.
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 14:55:31 PDT 2016
Author: qcolombet
Date: Wed Jun 8 16:55:30 2016
New Revision: 272210
URL: http://llvm.org/viewvc/llvm-project?rev=272210&view=rev
Log:
[RegBankSelect] Print out the actual mapping of the operands.
This improves the debuggability of the pass.
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp?rev=272210&r1=272209&r2=272210&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp Wed Jun 8 16:55:30 2016
@@ -502,6 +502,7 @@ void RegBankSelect::applyMapping(
}
}
// Second, rewrite the instruction.
+ DEBUG(dbgs() << "Actual mapping of the operands: " << OpdMapper << '\n');
RBI->applyMapping(OpdMapper);
}
More information about the llvm-commits
mailing list