From: Mark Searles Date: Mon, 16 Jul 2018 10:02:40 +0000 (+0000) Subject: Revert "[AMDGPU][Waitcnt] fix "comparison of integers of different signs" build error" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=356f9421a195c52247e7006abeedb0f4fb79d502;p=llvm Revert "[AMDGPU][Waitcnt] fix "comparison of integers of different signs" build error" This reverts commit fe0a456510131f268e388c4a18a92f575c0db183. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337153 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/lib/Target/AMDGPU/SIInsertWaitcnts.cpp index d456e3d9b94..f32ed5aa954 100644 --- a/lib/Target/AMDGPU/SIInsertWaitcnts.cpp +++ b/lib/Target/AMDGPU/SIInsertWaitcnts.cpp @@ -1904,7 +1904,7 @@ bool SIInsertWaitcnts::runOnMachineFunction(MachineFunction &MF) { // If the loop has multiple back-edges, and so more than one "bottom" // basic block, we have to guarantee a re-walk over every blocks. if ((std::count(BlockWaitcntProcessedSet.begin(), - BlockWaitcntProcessedSet.end(), &MBB) < (int)Count)) { + BlockWaitcntProcessedSet.end(), &MBB) < Count)) { BlockWaitcntBracketsMap[&MBB]->setRevisitLoop(true); LLVM_DEBUG(dbgs() << "set-revisit1: Block" << ContainingLoop->getHeader()->getNumber() << '\n';);