[llvm] [Codegen] (NFC) Faster algorithm for MachineBlockPlacement (PR #91843)
William Junda Huang via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 19:57:30 PDT 2024
================
@@ -3158,9 +3158,9 @@ bool MachineBlockPlacement::maybeTailDuplicateBlock(
// Handle the filter set
if (BlockFilter) {
- BlockFilter->remove(RemBB);
if (*PrevUnplacedBlockInFilterIt == RemBB)
PrevUnplacedBlockInFilterIt++;
+ BlockFilter->remove(RemBB);
----------------
huangjd wrote:
It looks like PrevUnplacedBlockInFilterIt does not need to be modified at all because it does not increment automatically in buildChain()
https://github.com/llvm/llvm-project/pull/91843
More information about the llvm-commits
mailing list