[llvm] [AMDGPU] Extend DS loop wait optimization with flush point tracking (PR #175658)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 23:46:19 PST 2026


================
@@ -3442,22 +3463,41 @@ SIInsertWaitcnts::getPreheaderFlushFlags(MachineLoop *ML,
             VgprDefVMEM.insert(RU);
           }
         }
-        // Early exit if both optimizations are invalidated
-        if (VMemInvalidated && DSInvalidated)
+        // Early exit if all optimizations are invalidated
+        if (VMemInvalidated && DSInvalidated && FlushPointTrackingInvalid)
           return Flags;
       }
 
+      bool IsDSRead = isDSRead(MI);
----------------
vporpo wrote:

Hmm we are using the terms DSRead and DSLoad (In DSLoadCount) for the same thing, so naming is not consistent here.

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


More information about the llvm-commits mailing list