[PATCH] D98085: [AMDGPU] Always expand system scope fp atomics on gfx90a
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 5 17:14:16 PST 2021
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:11952
- if (Subtarget->hasGFX90AInsts())
+ if (Subtarget->hasGFX90AInsts()) {
+ auto SSID = RMW->getSyncScopeID();
----------------
Is this actually target specific? I thought this might have been all targets
================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:11954-11955
+ auto SSID = RMW->getSyncScopeID();
+ if (SSID == SyncScope::System ||
+ SSID == RMW->getContext().getOrInsertSyncScopeID("one-as"))
+ return AtomicExpansionKind::CmpXChg;
----------------
Isn't there some scope greater or equal function? Should avoid directly referencing one-as
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98085/new/
https://reviews.llvm.org/D98085
More information about the llvm-commits
mailing list