Skip to content

Commit eb1bc2e

Browse files
committed
move assert back in original position
1 parent 9d91af1 commit eb1bc2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2146,9 +2146,10 @@ void SIInsertWaitcnts::updateEventWaitcntAfter(MachineInstr &Inst,
21462146
return;
21472147
}
21482148

2149-
int FlatASCount = 0;
21502149
assert(Inst.mayLoadOrStore());
21512150

2151+
int FlatASCount = 0;
2152+
21522153
if (mayAccessVMEMThroughFlat(Inst)) {
21532154
++FlatASCount;
21542155
ScoreBrackets->updateByEvent(TII, TRI, MRI, getVmemWaitEventType(Inst),

0 commit comments

Comments
 (0)