[PATCH] D38670: [MBP] Scheduled blocks have been removed from worklist

Xin Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 7 23:35:37 PDT 2017


trentxintong created this revision.

Scheduled blocks have been removed from worklist


https://reviews.llvm.org/D38670

Files:
  lib/CodeGen/MachineBlockPlacement.cpp


Index: lib/CodeGen/MachineBlockPlacement.cpp
===================================================================
--- lib/CodeGen/MachineBlockPlacement.cpp
+++ lib/CodeGen/MachineBlockPlacement.cpp
@@ -1583,11 +1583,7 @@
     assert(MBB->isEHPad() == IsEHPad &&
            "EHPad mismatch between block and work list.");
 
-    BlockChain &SuccChain = *BlockToChain[MBB];
-    if (&SuccChain == &Chain)
-      continue;
-
-    assert(SuccChain.UnscheduledPredecessors == 0 &&
+    assert(BlockToChain[MBB]->UnscheduledPredecessors == 0 &&
            "Found CFG-violating block");
 
     BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38670.118149.patch
Type: text/x-patch
Size: 644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171008/975bd7e6/attachment.bin>


More information about the llvm-commits mailing list