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

William Junda Huang via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 16:10:08 PDT 2024


================
@@ -3118,7 +3158,16 @@ bool MachineBlockPlacement::maybeTailDuplicateBlock(
 
         // Handle the filter set
         if (BlockFilter) {
-          BlockFilter->remove(RemBB);
+          auto It = llvm::find(*BlockFilter, RemBB);
----------------
huangjd wrote:

Done.

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


More information about the llvm-commits mailing list