Skip to content

Commit daeef78

Browse files
committed
move assert back in original position
1 parent bc3635c commit daeef78

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)