[PATCH] D157091: AMDGPU/Uniformity/GlobalISel: G_AMDGPU atomics are always divergent

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 4 06:24:41 PDT 2023


foad added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:8607
   unsigned opcode = MI.getOpcode();
+  if (AMDGPU::isGenericAtomic(opcode))
+    return InstructionUniformity::NeverUniform;
----------------
Can we detect these by looking at the MachineMemOperands, so we don't have to maintain yet another big list of opcodes?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157091/new/

https://reviews.llvm.org/D157091



More information about the llvm-commits mailing list