Skip to content

Commit a451af1

Browse files
committed
Increase BlockCapacity from 8 to 16 for intrusive BasicBlockSet.
InstructionRange uses 3 sets. Some algorithms need two active ranges at the top-level. Additionally, utilities often have few levels of nesting that each require a block set.
1 parent ef940c5 commit a451af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SILOptimizer/PassManager/PassManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SwiftPassInvocation {
7373

7474
SILSSAUpdater *ssaUpdater = nullptr;
7575

76-
static constexpr int BlockSetCapacity = 8;
76+
static constexpr int BlockSetCapacity = 16;
7777
char blockSetStorage[sizeof(BasicBlockSet) * BlockSetCapacity];
7878
bool aliveBlockSets[BlockSetCapacity];
7979
int numBlockSetsAllocated = 0;

0 commit comments

Comments
 (0)