[llvm] [AMDGPU] SIPeepholeSDWA: Add REG_SEQUENCE support (PR #133087)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 28 08:36:00 PDT 2025


================
@@ -278,11 +281,16 @@ static void copyRegOperand(MachineOperand &To, const MachineOperand &From) {
   }
 }
 
+static bool isSameReg(const MachineOperand &Op, Register Reg) {
+  return Op.isReg() && Op.getReg() == Reg;
----------------
arsenm wrote:

isReg can never be false for the copy-like contexts you're looking at 

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


More information about the llvm-commits mailing list