From 5eaddb3f6825a472bc4ef59a3a6aa1b6f9ff3b16 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Tue, 16 Jan 2018 10:53:14 +0000 Subject: [CodeGen] Remove special case of printing subRegIdx from MachineInstr::print Support in MachineOperand has been added in r320209. No need to special case this anymore. llvm-svn: 322542 --- llvm/lib/CodeGen/MachineInstr.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'llvm/lib/CodeGen/MachineInstr.cpp') diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 47974a253ba..ed1238c121b 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -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++; -- cgit v1.2.3