[llvm] [AMDGPU] Analyze REG_SEQUENCE To Remove Redundant CMP Instructions (PR #167364)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 10 11:05:02 PST 2025


================
@@ -1312,6 +1312,30 @@ Register SIInstrInfo::insertNE(MachineBasicBlock *MBB,
   return Reg;
 }
 
+MachineInstr *
+SIInstrInfo::pierceThroughRegSequence(const MachineInstr &MI) const {
+  if (MI.getOpcode() != AMDGPU::REG_SEQUENCE)
+    return nullptr;
+
----------------
LU-JOHN wrote:

Check if MI has wrong number of operands.

https://github.com/llvm/llvm-project/pull/167364


More information about the llvm-commits mailing list