Skip to content

Commit 8d4f1f3

Browse files
authored
Merge pull request #15483 from gottesmm/pr-90ea31c996d38eec3a1aa9797c1d08c9a53fb356
[globalopt] Eliminate unused field.
2 parents 7741925 + 6e98703 commit 8d4f1f3

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
@@ -85,18 +85,16 @@ class SILGlobalOpt {
8585
/// The set of functions that have had their loops analyzed.
8686
llvm::DenseSet<SILFunction *> LoopCheckedFunctions;
8787

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

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

10199
bool run();
102100

0 commit comments

Comments
 (0)