Skip to content

Commit 857644e

Browse files
committed
Comments
1 parent 3b51b22 commit 857644e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ class SIGfx12CacheControl : public SIGfx11CacheControl {
590590
SIGfx12CacheControl(const GCNSubtarget &ST) : SIGfx11CacheControl(ST) {
591591
// GFX12.0 and GFX12.5 memory models greatly overlap, and in some cases
592592
// the behavior is the same if assuming GFX12.0 in CU mode.
593-
assert(ST.hasGFX1250Insts() ? ST.isCuModeEnabled() : true);
593+
assert(!ST.hasGFX1250Insts() || ST.isCuModeEnabled());
594594
}
595595

596596
bool insertWait(MachineBasicBlock::iterator &MI, SIAtomicScope Scope,
@@ -2592,14 +2592,15 @@ bool SIGfx12CacheControl::finalizeStore(MachineInstr &MI, bool Atomic) const {
25922592
const bool IsRMW = (MI.mayLoad() && MI.mayStore());
25932593
bool Changed = false;
25942594

2595-
// GFX12.5 only: xcnt wait is needed before flat and global atomics stores/rmw
2595+
// GFX12.5 only: xcnt wait is needed before flat and global atomics
2596+
// stores/rmw.
25962597
if (Atomic && ST.requiresWaitXCntBeforeAtomicStores() && TII->isFLAT(MI)) {
25972598
MachineBasicBlock &MBB = *MI.getParent();
25982599
BuildMI(MBB, MI, MI.getDebugLoc(), TII->get(S_WAIT_XCNT_soft)).addImm(0);
25992600
Changed = true;
26002601
}
26012602

2602-
// Remaining fixes do not apply to RMWs
2603+
// Remaining fixes do not apply to RMWs.
26032604
if (IsRMW)
26042605
return Changed;
26052606

llvm/lib/Target/AMDGPU/SOPInstructions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1658,7 +1658,7 @@ let OtherPredicates = [HasImageInsts] in {
16581658

16591659

16601660
let SubtargetPredicate = HasWaitXcnt in {
1661-
def S_WAIT_XCNT_soft : SOPP_Pseudo<"s_soft_wait_xcnt", (ins s16imm:$simm16), "$simm16">;
1661+
def S_WAIT_XCNT_soft : SOPP_Pseudo<"", (ins s16imm:$simm16), "$simm16">;
16621662
}
16631663

16641664
// Represents the point at which a wave must wait for all outstanding direct loads to LDS.

0 commit comments

Comments
 (0)