mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SIL] NFC: Simplify SILVTable and save 8 bytes per SILVTable
We were not using the primary benefits of an intrusive list, namely the ability to insert or remove from the middle of the list, so let's switch to a plain vector. This also avoids linked-list pointer chasing.
This commit is contained in:
@@ -736,7 +736,7 @@ static void countStatsPostSILGen(UnifiedStatsReporter &Stats,
|
||||
auto &C = Stats.getFrontendCounters();
|
||||
// FIXME: calculate these in constant time, via the dense maps.
|
||||
C.NumSILGenFunctions += Module.getFunctionList().size();
|
||||
C.NumSILGenVtables += Module.getVTableList().size();
|
||||
C.NumSILGenVtables += Module.getVTables().size();
|
||||
C.NumSILGenWitnessTables += Module.getWitnessTableList().size();
|
||||
C.NumSILGenDefaultWitnessTables += Module.getDefaultWitnessTableList().size();
|
||||
C.NumSILGenGlobalVariables += Module.getSILGlobalList().size();
|
||||
|
||||
Reference in New Issue
Block a user