[llvm] [AMDGPU] Remove s_delay_alu for VALU->SGPR->SALU (PR #127212)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 07:47:51 PST 2025
================
@@ -56,6 +61,16 @@ class AMDGPUInsertDelayAlu : public MachineFunctionPass {
return false;
}
+ static bool instructionWaitsForSGPRWrites(const MachineInstr &MI) {
+ // These instruction types wait for VA_SDST==0 before issuing.
+ const uint64_t VA_SDST_0 = SIInstrFlags::SALU | SIInstrFlags::SMRD;
+
+ if (MI.getDesc().TSFlags & VA_SDST_0)
+ return true;
+
+ return false;
----------------
jayfoad wrote:
```suggestion
return MI.getDesc().TSFlags & VA_SDST_0;
```
https://github.com/llvm/llvm-project/pull/127212
More information about the llvm-commits
mailing list