When multiple threads perform an atomic op with the same arguments, they
will usually see different return values.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM, although your test would be greatly simplified by just running the divergence analysis like is done in test/Analysis/DivergenceAnalysis/AMDGPU
Are the standard atomic instructions also reported as divergent?
Comment Actions
r263440 - committed with a simplified test.
From a brief check it looks like atomic instructions aren't marked as divergent.