Skip to content

Commit

Permalink
[CodeGen] Remove special case of printing subRegIdx from MachineInstr…
Browse files Browse the repository at this point in the history
…::print

Support in MachineOperand has been added in r320209. No need to special
case this anymore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322542 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
francisvm committed Jan 16, 2018
1 parent 19988dd commit 5c1ffd9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/CodeGen/MachineInstr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1332,9 +1332,6 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST,
MO.print(OS, MST, TypeToPrint, /*PrintDef=*/true,
ShouldPrintRegisterTies, TiedOperandIdx, TRI, IntrinsicInfo);
}
} 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.
OS << '$' << AsmOpCount++;
Expand Down

0 comments on commit 5c1ffd9

Please sign in to comment.