Skip to content

Commit d414648

Browse files
authored
Merge pull request swiftlang#21463 from gottesmm/pr-89ba7f1c9c5ad900f1217f32305fc79028e07eff
[predictable-mem-opts] Eliminate unused PMOUseKind.
2 parents fe5fca7 + c67b80e commit d414648

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

lib/SILOptimizer/Mandatory/PMOMemoryUseCollector.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,6 @@ enum PMOUseKind {
155155
/// This instruction is a general escape of the value, e.g. a call to a
156156
/// closure that captures it.
157157
Escape,
158-
159-
/// This instruction is a call to 'super.init' in a 'self' initializer of a
160-
/// derived class.
161-
SuperInit,
162-
163-
/// This instruction is a call to 'self.init' in a delegating initializer.
164-
SelfInit
165158
};
166159

167160
/// This struct represents a single classified access to the memory object

lib/SILOptimizer/Mandatory/PredictableMemOpt.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,9 +1250,6 @@ bool AllocOptimize::tryToRemoveDeadAllocation() {
12501250
if (U.Inst == nullptr) continue;
12511251

12521252
switch (U.Kind) {
1253-
case PMOUseKind::SelfInit:
1254-
case PMOUseKind::SuperInit:
1255-
llvm_unreachable("Can't happen on allocations");
12561253
case PMOUseKind::Assign:
12571254
case PMOUseKind::PartialStore:
12581255
case PMOUseKind::InitOrAssign:

0 commit comments

Comments
 (0)