forked from OSchip/llvm-project
MachineInstr: Print name for subreg index in SUBREG_TO_REG
SUBREG_TO_REG takes a subregister index as 3rd operand, print the name instead of a number. We already do the same for INSERT_SUBREG and REG_SEQUENCE. llvm-svn: 291481
This commit is contained in:
parent
f55ce36c02
commit
a37430844c
|
@ -1840,7 +1840,8 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST,
|
|||
OS << "!\"" << DIV->getName() << '\"';
|
||||
else
|
||||
MO.print(OS, MST, TRI);
|
||||
} else if (TRI && (isInsertSubreg() || isRegSequence()) && MO.isImm()) {
|
||||
} else if (TRI && (isInsertSubreg() || isRegSequence() ||
|
||||
(isSubregToReg() && i == 3)) && MO.isImm()) {
|
||||
OS << TRI->getSubRegIndexName(MO.getImm());
|
||||
} else if (i == AsmDescOp && MO.isImm()) {
|
||||
// Pretty print the inline asm operand descriptor.
|
||||
|
|
Loading…
Reference in New Issue