[NFC][PowerPC] Remove the redundant InstAlias for OR instruction
authorKang Zhang <shkzhang@cn.ibm.com>
Tue, 9 Jun 2020 03:32:27 +0000 (03:32 +0000)
committerKang Zhang <shkzhang@cn.ibm.com>
Tue, 9 Jun 2020 03:32:27 +0000 (03:32 +0000)
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

index 6adfe5c..16da62a 100644 (file)
@@ -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();