[llvm] r365429 - [PowerPC][NFC] remove redundant function isVFReg().

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 19:48:30 PDT 2019


Author: shchenz
Date: Mon Jul  8 19:48:30 2019
New Revision: 365429

URL: http://llvm.org/viewvc/llvm-project?rev=365429&view=rev
Log:
[PowerPC][NFC] remove redundant function isVFReg().

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp?rev=365429&r1=365428&r2=365429&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp Mon Jul  8 19:48:30 2019
@@ -2777,10 +2777,6 @@ bool PPCInstrInfo::convertToImmediateFor
   return false;
 }
 
-static bool isVFReg(unsigned Reg) {
-  return PPC::VFRCRegClass.contains(Reg);
-}
-
 bool PPCInstrInfo::instrHasImmForm(const MachineInstr &MI,
                                    ImmInstrInfo &III, bool PostRA) const {
   unsigned Opc = MI.getOpcode();
@@ -3115,7 +3111,7 @@ bool PPCInstrInfo::instrHasImmForm(const
       break;
     case PPC::LXSSPX:
       if (PostRA) {
-        if (isVFReg(MI.getOperand(0).getReg()))
+        if (isVFRegister(MI.getOperand(0).getReg()))
           III.ImmOpcode = PPC::LXSSP;
         else {
           III.ImmOpcode = PPC::LFS;
@@ -3129,7 +3125,7 @@ bool PPCInstrInfo::instrHasImmForm(const
       break;
     case PPC::LXSDX:
       if (PostRA) {
-        if (isVFReg(MI.getOperand(0).getReg()))
+        if (isVFRegister(MI.getOperand(0).getReg()))
           III.ImmOpcode = PPC::LXSD;
         else {
           III.ImmOpcode = PPC::LFD;
@@ -3147,7 +3143,7 @@ bool PPCInstrInfo::instrHasImmForm(const
       break;
     case PPC::STXSSPX:
       if (PostRA) {
-        if (isVFReg(MI.getOperand(0).getReg()))
+        if (isVFRegister(MI.getOperand(0).getReg()))
           III.ImmOpcode = PPC::STXSSP;
         else {
           III.ImmOpcode = PPC::STFS;
@@ -3161,7 +3157,7 @@ bool PPCInstrInfo::instrHasImmForm(const
       break;
     case PPC::STXSDX:
       if (PostRA) {
-        if (isVFReg(MI.getOperand(0).getReg()))
+        if (isVFRegister(MI.getOperand(0).getReg()))
           III.ImmOpcode = PPC::STXSD;
         else {
           III.ImmOpcode = PPC::STFD;




More information about the llvm-commits mailing list