[llvm] [Codegen] (NFC) Faster algorithm for MachineBlockPlacement (PR #91843)
David Li via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 14:45:37 PDT 2024
================
@@ -3118,7 +3158,16 @@ bool MachineBlockPlacement::maybeTailDuplicateBlock(
// Handle the filter set
if (BlockFilter) {
- BlockFilter->remove(RemBB);
+ auto It = llvm::find(*BlockFilter, RemBB);
----------------
david-xl wrote:
Add a comment for the code below.
https://github.com/llvm/llvm-project/pull/91843
More information about the llvm-commits
mailing list