[llvm] [AMDGPU] Fix bad removal of s_delay_alu (PR #145728)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 27 05:20:50 PDT 2025


================
@@ -49,9 +49,17 @@ class AMDGPUInsertDelayAlu {
 
   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;
+    uint64_t MIFlags = MI.getDesc().TSFlags;
----------------
arsenm wrote:

Still needs to consider asm 

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


More information about the llvm-commits mailing list