Skip to content

Commit e3546c7

Browse files
committed
[NFC][PowerPC] Remove the redundant InstAlias for OR instruction
Summary: We have handle the InstAlias for OR instructions, but we handle it agagin in PPCInstPrinter.cpp. This patch is to Remove the redundant InstAlias for OR instruction. Reviewed By: steven.zhang Differential Revision: https://reviews.llvm.org/D80502
1 parent 5fda192 commit e3546c7

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,6 @@ void PPCInstPrinter::printInst(const MCInst *MI, uint64_t Address,
116116
}
117117
}
118118

119-
if ((MI->getOpcode() == PPC::OR || MI->getOpcode() == PPC::OR8) &&
120-
MI->getOperand(1).getReg() == MI->getOperand(2).getReg()) {
121-
O << "\tmr ";
122-
printOperand(MI, 0, O);
123-
O << ", ";
124-
printOperand(MI, 1, O);
125-
printAnnotation(O, Annot);
126-
return;
127-
}
128-
129119
if (MI->getOpcode() == PPC::RLDICR ||
130120
MI->getOpcode() == PPC::RLDICR_32) {
131121
unsigned char SH = MI->getOperand(2).getImm();

0 commit comments

Comments
 (0)