[llvm] AMDGPU: VALU data fast-forwarding needs no s_delay (PR #205481)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 28 08:22:00 PDT 2026


================
@@ -346,6 +352,205 @@ class AMDGPUInsertDelayAlu {
     return (Imm & 0x780) ? nullptr : DelayAlu;
   }
 
+  static bool isFastForwardProducer(const MachineInstr &MI,
+                                    const MachineOperand &MO, Register VccReg,
+                                    Register ExecReg) {
+    if (!MO.isReg() || !MO.isDef())
----------------
jayfoad wrote:

This is checked in the caller. Either remove this or change it to an assert.

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


More information about the llvm-commits mailing list