summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorRoman Tereshin <rtereshin@apple.com>2018-04-26 20:22:17 +0000
committerRoman Tereshin <rtereshin@apple.com>2018-04-26 20:22:17 +0000
commit38489ed416b324e28fa49a24cc5324c98b6aa4a2 (patch)
tree54cd61e39c83b8766ae960790844b4715355a428 /llvm/lib/CodeGen
parent51738f834ed9824f916296d12c67b73bd643cccc (diff)
downloadbcm5719-llvm-38489ed416b324e28fa49a24cc5324c98b6aa4a2.tar.gz
bcm5719-llvm-38489ed416b324e28fa49a24cc5324c98b6aa4a2.zip
[GlobalISel] Reporting rules covered as part of the InstructionSelect's debug-only printing
The main goal of this change is to make it much easier to track which rules are actually covered by Testgen'erated regression tests. Reviewers: aemerson, dsanders Differential Revision: https://reviews.llvm.org/D46095 llvm-svn: 330988
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp b/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp
index 557cc73dcda..7923a888118 100644
--- a/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp
@@ -218,6 +218,12 @@ bool InstructionSelect::runOnMachineFunction(MachineFunction &MF) {
auto &TLI = *MF.getSubtarget().getTargetLowering();
TLI.finalizeLowering(MF);
+ DEBUG({
+ dbgs() << "Rules covered by selecting function: " << MF.getName() << ":";
+ for (auto RuleID : CoverageInfo.covered())
+ dbgs() << " id" << RuleID;
+ dbgs() << "\n\n";
+ });
CoverageInfo.emit(CoveragePrefix,
MF.getSubtarget()
.getTargetLowering()
OpenPOWER on IntegriCloud