[llvm] 9a5e5a6 - [NFC][NVPTX] Remove use of MachineInstr prior to ISel (#114913)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 08:47:18 PST 2024


Author: Justin Fargnoli
Date: 2024-11-05T08:47:14-08:00
New Revision: 9a5e5a6ecc96fb8fb3642c73ff585cb6b919f653

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

LOG: [NFC][NVPTX] Remove use of MachineInstr prior to ISel (#114913)

Delete dead code that checks for `NVPTX::IMOV16rr`.

Added: 
    

Modified: 
    llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
index d3bf0ecfe2cc92..18b05b23da220b 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -5694,10 +5694,6 @@ static SDValue PerformANDCombine(SDNode *N,
     Val = Val->getOperand(0);
   }
 
-  if (Val->isMachineOpcode() && Val->getMachineOpcode() == NVPTX::IMOV16rr) {
-    Val = Val->getOperand(0);
-  }
-
   if (Val->getOpcode() == NVPTXISD::LoadV2 ||
       Val->getOpcode() == NVPTXISD::LoadV4) {
     ConstantSDNode *MaskCnst = dyn_cast<ConstantSDNode>(Mask);


        


More information about the llvm-commits mailing list