[llvm] 232f0c9 - [NFC][AMDGPU] Remove redundant code

Luke Drummond via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 03:20:03 PDT 2023


Author: Mateusz Hurnik
Date: 2023-08-25T11:18:48+01:00
New Revision: 232f0c9a9aa14802139126e97fcd0b5874b2f150

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

LOG: [NFC][AMDGPU] Remove redundant code

As the result of this constant function is unused it is redundant.

Reviewed by: arsenm
Differential Revision: https://reviews.llvm.org/D158747

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
index 9bebb077c4f8d7..274c0c848a2c91 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -2896,7 +2896,6 @@ unsigned SIInstrInfo::insertBranch(MachineBasicBlock &MBB,
     = getBranchOpcode(static_cast<BranchPredicate>(Cond[0].getImm()));
 
   if (!FBB) {
-    Cond[1].isUndef();
     MachineInstr *CondBr =
       BuildMI(&MBB, DL, get(Opcode))
       .addMBB(TBB);


        


More information about the llvm-commits mailing list