[llvm] AMDGPU/GFX12: Do not wait unnecessarily before barriers (PR #154970)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 08:39:01 PDT 2025
================
@@ -2010,11 +2010,19 @@ bool SIInsertWaitcnts::generateWaitcntInstBefore(MachineInstr &MI,
}
}
- // The subtarget may have an implicit S_WAITCNT 0 before barriers. If it does
- // not, we need to ensure the subtarget is capable of backing off barrier
- // instructions in case there are any outstanding memory operations that may
- // cause an exception. Otherwise, insert an explicit S_WAITCNT 0 here.
- if (TII->isBarrierStart(MI.getOpcode()) &&
----------------
jayfoad wrote:
I think this was the only substantive use of isBarrierStart.
https://github.com/llvm/llvm-project/pull/154970
More information about the llvm-commits
mailing list