Skip to content

Commit f4e7025

Browse files
committed
[AMDGPU][Waitcnt] Re-apply fix "comparison of integers of different signs" build error"
Re-apply "[AMDGPU][Waitcnt] fix "comparison of integers of different signs" build error"" ( fe0a456510131f268e388c4a18a92f575c0db183 ), which was inadvertantly reverted via 2b2ee080f0164485562593b1b87291a48cea4a9a . llvm-svn: 337156
1 parent 725a4dd commit f4e7025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@ bool SIInsertWaitcnts::runOnMachineFunction(MachineFunction &MF) {
19041904
// If the loop has multiple back-edges, and so more than one "bottom"
19051905
// basic block, we have to guarantee a re-walk over every blocks.
19061906
if ((std::count(BlockWaitcntProcessedSet.begin(),
1907-
BlockWaitcntProcessedSet.end(), &MBB) < Count)) {
1907+
BlockWaitcntProcessedSet.end(), &MBB) < (int)Count)) {
19081908
BlockWaitcntBracketsMap[&MBB]->setRevisitLoop(true);
19091909
LLVM_DEBUG(dbgs() << "set-revisit1: Block"
19101910
<< ContainingLoop->getHeader()->getNumber() << '\n';);

0 commit comments

Comments
 (0)