[llvm] e3546c7 - [NFC][PowerPC] Remove the redundant InstAlias for OR instruction
Kang Zhang via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 20:35:12 PDT 2020
Author: Kang Zhang
Date: 2020-06-09T03:32:27Z
New Revision: e3546c78cabfbf670391a57766872f0a8e28a423
URL: https://github.com/llvm/llvm-project/commit/e3546c78cabfbf670391a57766872f0a8e28a423
DIFF: https://github.com/llvm/llvm-project/commit/e3546c78cabfbf670391a57766872f0a8e28a423.diff
LOG: [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
Added:
Modified:
llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
index 6adfe5ca1ac1..16da62a74b8c 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();
More information about the llvm-commits
mailing list