[llvm] bf4933b - AMDGPU/GlobalISel: Remove dead code

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 21 16:19:45 PST 2020


Author: Matt Arsenault
Date: 2020-02-21T19:19:32-05:00
New Revision: bf4933b4ea657128f1afcf19758866d41e5aebf9

URL: https://github.com/llvm/llvm-project/commit/bf4933b4ea657128f1afcf19758866d41e5aebf9
DIFF: https://github.com/llvm/llvm-project/commit/bf4933b4ea657128f1afcf19758866d41e5aebf9.diff

LOG: AMDGPU/GlobalISel: Remove dead code

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
    llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
index 758f575144a5..e1ca71db2e4d 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
@@ -2508,23 +2508,6 @@ AMDGPUInstructionSelector::selectVOP3PMods(MachineOperand &Root) const {
   }};
 }
 
-InstructionSelector::ComplexRendererFns
-AMDGPUInstructionSelector::selectVOP3PMods0(MachineOperand &Root) const {
-  MachineRegisterInfo &MRI
-    = Root.getParent()->getParent()->getParent()->getRegInfo();
-
-  Register Src;
-  unsigned Mods;
-  std::tie(Src, Mods) = selectVOP3PModsImpl(Root.getReg(), MRI);
-
-  return {{
-      [=](MachineInstrBuilder &MIB) { MIB.addReg(Src); },
-      [=](MachineInstrBuilder &MIB) { MIB.addImm(Mods); } , // src_mods
-      // FIXME: Handle clamp and op_sel
-      [=](MachineInstrBuilder &MIB) { MIB.addImm(0); }
-  }};
-}
-
 InstructionSelector::ComplexRendererFns
 AMDGPUInstructionSelector::selectVOP3Mods_nnan(MachineOperand &Root) const {
   Register Src;

diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
index a304e350a314..d123c5d93497 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
@@ -154,9 +154,6 @@ class AMDGPUInstructionSelector : public InstructionSelector {
   InstructionSelector::ComplexRendererFns
   selectVOP3PMods(MachineOperand &Root) const;
 
-  InstructionSelector::ComplexRendererFns
-  selectVOP3PMods0(MachineOperand &Root) const;
-
   InstructionSelector::ComplexRendererFns
   selectVOP3OpSelMods0(MachineOperand &Root) const;
   InstructionSelector::ComplexRendererFns


        


More information about the llvm-commits mailing list