Skip to content

Commit 6e98703

Browse files
committed
[globalopt] Eliminate unused field.
Some time ago I believe due to compile time? Not sure, we started to use ColdBlockInfo in a per function way. So for each function, we instantiate a new ColdBlockInfo and never use this one. So there is no reason for it to exist...
1 parent 7cb869a commit 6e98703

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/SILOptimizer/IPO/GlobalOpt.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,16 @@ class SILGlobalOpt {
8484
/// The set of functions that have had their loops analyzed.
8585
llvm::DenseSet<SILFunction *> LoopCheckedFunctions;
8686

87-
/// Keep track of cold blocks.
88-
ColdBlockInfo ColdBlocks;
89-
90-
/// Whether we see a "once" call to callees that we currently don't handle.
87+
/// Whether we have seen any "once" calls to callees that we currently don't
88+
/// handle.
9189
bool UnhandledOnceCallee = false;
9290

9391
/// A map from a globalinit_func to the number of times "once" has called the
9492
/// function.
9593
llvm::DenseMap<SILFunction *, unsigned> InitializerCount;
9694
public:
9795
SILGlobalOpt(SILModule *M, DominanceAnalysis *DA)
98-
: Module(M), DA(DA), ColdBlocks(DA) {}
96+
: Module(M), DA(DA) {}
9997

10098
bool run();
10199

0 commit comments

Comments
 (0)