[llvm] AMDGPU/GFX12: Insert waitcnts before stores with scope_sys (PR #82996)

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 05:59:48 PST 2024


================
@@ -2381,6 +2387,34 @@ bool SIGfx12CacheControl::enableVolatileAndOrNonTemporal(
   return Changed;
 }
 
+bool SIGfx12CacheControl::expandSystemScopeStore(
+    MachineBasicBlock::iterator &MI) const {
+
+  MachineOperand *CPol = TII->getNamedOperand(*MI, OpName::cpol);
+  if (CPol && ((CPol->getImm() & CPol::SCOPE) == CPol::SCOPE_SYS)) {
----------------
Pierre-vh wrote:

invert condition & early return

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


More information about the llvm-commits mailing list