From e3546c78cabfbf670391a57766872f0a8e28a423 Mon Sep 17 00:00:00 2001 From: Kang Zhang Date: Tue, 9 Jun 2020 03:32:27 +0000 Subject: [PATCH] [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 --- llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp index 6adfe5c..16da62a 100644 --- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp +++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp @@ -116,16 +116,6 @@ void PPCInstPrinter::printInst(const MCInst *MI, uint64_t Address, } } - if ((MI->getOpcode() == PPC::OR || MI->getOpcode() == PPC::OR8) && - MI->getOperand(1).getReg() == MI->getOperand(2).getReg()) { - O << "\tmr "; - printOperand(MI, 0, O); - O << ", "; - printOperand(MI, 1, O); - printAnnotation(O, Annot); - return; - } - if (MI->getOpcode() == PPC::RLDICR || MI->getOpcode() == PPC::RLDICR_32) { unsigned char SH = MI->getOperand(2).getImm(); -- 2.7.4