[llvm] [AMDGPU][SIInsertWaitcnts] Wait on all LDS DMA operations when no aliasing store is found (PR #170660)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 4 13:31:37 PST 2025
================
@@ -2010,15 +2014,23 @@ bool SIInsertWaitcnts::generateWaitcntInstBefore(MachineInstr &MI,
if (Ptr && Memop->getAAInfo()) {
const auto &LDSDMAStores = ScoreBrackets.getLDSDMAStores();
for (unsigned I = 0, E = LDSDMAStores.size(); I != E; ++I) {
- if (MI.mayAlias(AA, *LDSDMAStores[I], true))
+ if (MI.mayAlias(AA, *LDSDMAStores[I], true)) {
+ if ((I + 1) >= NUM_LDS_VGPRS) {
----------------
arsenm wrote:
Can you move this up to avoid the AA check if it the limit
https://github.com/llvm/llvm-project/pull/170660
More information about the llvm-commits
mailing list