[llvm] [Codegen] (NFC) Faster algorithm for MachineBlockPlacement (PR #91843)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 14:34:33 PDT 2024


================
@@ -3119,6 +3159,8 @@ bool MachineBlockPlacement::maybeTailDuplicateBlock(
         // Handle the filter set
         if (BlockFilter) {
           BlockFilter->remove(RemBB);
+          if (*PrevUnplacedBlockInFilterIt == RemBB)
----------------
weiguozhi wrote:

RemBB is already deleted from BlockFilter, you'll never find it again.

https://github.com/llvm/llvm-project/pull/91843


More information about the llvm-commits mailing list