[llvm] r337153 - Revert "[AMDGPU][Waitcnt] fix "comparison of integers of different signs" build error"

Mark Searles via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 16 03:02:40 PDT 2018


Author: msearles
Date: Mon Jul 16 03:02:40 2018
New Revision: 337153

URL: http://llvm.org/viewvc/llvm-project?rev=337153&view=rev
Log:
Revert "[AMDGPU][Waitcnt] fix "comparison of integers of different signs" build error"

This reverts commit fe0a456510131f268e388c4a18a92f575c0db183.

Modified:
    llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp?rev=337153&r1=337152&r2=337153&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp Mon Jul 16 03:02:40 2018
@@ -1904,7 +1904,7 @@ bool SIInsertWaitcnts::runOnMachineFunct
       // 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';);




More information about the llvm-commits mailing list