forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADT] Make set_subtract more efficient when subtrahend is larger (NFC) (
llvm#99401) This patch is based on: commit fffe272 Author: Teresa Johnson <[email protected]> Date: Wed Jul 17 13:53:10 2024 -0700 This iteration comes with a couple of improvements: - We now accommodate S2Ty being SmallPtrSet, which has remove_if(pred) but not erase(iterator). (Lack of this code path broke the mlir build.) - The code path for erase(iterator) now pre-increments the iterator to avoid problems with iterator invalidation.
- Loading branch information
1 parent
4a7bcef
commit 8fd8ca7
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters