]> granicus.if.org Git - llvm/commitdiff
[AMDGPU][Waitcnt] Re-apply fix "comparison of integers of different signs" build...
authorMark Searles <m.c.searles@gmail.com>
Mon, 16 Jul 2018 10:21:36 +0000 (10:21 +0000)
committerMark Searles <m.c.searles@gmail.com>
Mon, 16 Jul 2018 10:21:36 +0000 (10:21 +0000)
Re-apply "[AMDGPU][Waitcnt] fix "comparison of integers of different signs" build error""
fe0a456510131f268e388c4a18a92f575c0db183 ), which was inadvertantly reverted via
2b2ee080f0164485562593b1b87291a48cea4a9a .

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337156 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/SIInsertWaitcnts.cpp

index f32ed5aa954d0ce26537aac2157c7fc75585b64c..d456e3d9b94d07bf561c06c8d48c6b0ff4fe8773 100644 (file)
@@ -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) < Count)) {
+                      BlockWaitcntProcessedSet.end(), &MBB) < (int)Count)) {
         BlockWaitcntBracketsMap[&MBB]->setRevisitLoop(true);
         LLVM_DEBUG(dbgs() << "set-revisit1: Block"
                           << ContainingLoop->getHeader()->getNumber() << '\n';);