Skip to content

Commit d4214b7

Browse files
committed
[sil-combine] Eliminate a dead parameter.
We pass in deadEndBlocks into scCanonicalize's constructor now.
1 parent 5714a59 commit d4214b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILOptimizer/SILCombiner/SILCombine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class SILCombineCanonicalize final : CanonicalizeInstruction {
138138
changed = true;
139139
}
140140

141-
bool tryCanonicalize(SILInstruction *inst, DeadEndBlocks &deadEndBlocks) {
141+
bool tryCanonicalize(SILInstruction *inst) {
142142
changed = false;
143143
canonicalize(inst);
144144
return changed;
@@ -178,7 +178,7 @@ bool SILCombiner::doOneIteration(SILFunction &F, unsigned Iteration) {
178178
}
179179

180180
// Canonicalize the instruction.
181-
if (scCanonicalize.tryCanonicalize(I, deadEndBlocks)) {
181+
if (scCanonicalize.tryCanonicalize(I)) {
182182
MadeChange = true;
183183
continue;
184184
}

0 commit comments

Comments
 (0)