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

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 10 10:49:50 PST 2025


================
@@ -1312,6 +1312,30 @@ Register SIInstrInfo::insertNE(MachineBasicBlock *MBB,
   return Reg;
 }
 
+MachineInstr *
----------------
LU-JOHN wrote:

I think it would be helpful to add a comment describing what is being done.  Something like:

For a 64-bit value defined by a REG_SEQUENCE with half of the result being 0, find the instruction that defines the other half.

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


More information about the llvm-commits mailing list