diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-01-09 17:31:07 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-01-09 17:31:07 +0000 |
commit | 7d9bef8f5cf007af067d668fa1be86edf50e50c2 (patch) | |
tree | 1d97f6f17b69a087cb2645b5bbe5318a5c358366 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 4762c069dead49ba96c05da0b827f52fad117164 (diff) | |
download | bcm5719-llvm-7d9bef8f5cf007af067d668fa1be86edf50e50c2.tar.gz bcm5719-llvm-7d9bef8f5cf007af067d668fa1be86edf50e50c2.zip |
[CodeGen] Don't print "pred:" and "opt:" in -debug output
In -debug output we print "pred:" whenever a MachineOperand is a
predicate operand in the instruction descriptor, and "opt:" whenever a
MachineOperand is an optional def in the instruction descriptor.
Differential Revision: https://reviews.llvm.org/D41870
llvm-svn: 322096
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 9e410b28dcb..eba100ee15e 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1320,13 +1320,7 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST, if (FirstOp) FirstOp = false; else OS << ","; OS << " "; - if (i < getDesc().NumOperands) { - const MCOperandInfo &MCOI = getDesc().OpInfo[i]; - if (MCOI.isPredicate()) - OS << "pred:"; - if (MCOI.isOptionalDef()) - OS << "opt:"; - } + if (isDebugValue() && MO.isMetadata()) { // Pretty print DBG_VALUE instructions. auto *DIV = dyn_cast<DILocalVariable>(MO.getMetadata()); |