Skip to content

Commit babee8b

Browse files
authored
Merge pull request #22011 from gottesmm/pr-5ea10976b025e6c8196e231982b4395362fc62c4
2 parents 528fe6a + 9004e87 commit babee8b

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

lib/SILOptimizer/Mandatory/PMOMemoryUseCollector.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,6 @@ bool ElementUseCollector::collectUses(SILValue Pointer) {
238238
continue;
239239
}
240240

241-
#define NEVER_OR_SOMETIMES_LOADABLE_CHECKED_REF_STORAGE(Name, ...) \
242-
if (isa<Load##Name##Inst>(User)) { \
243-
Uses.emplace_back(User, PMOUseKind::Load); \
244-
continue; \
245-
}
246-
#include "swift/AST/ReferenceStorage.def"
247-
248241
// Stores *to* the allocation are writes.
249242
if (isa<StoreInst>(User) && UI->getOperandNumber() == 1) {
250243
if (PointeeType.is<TupleType>()) {
@@ -263,20 +256,6 @@ bool ElementUseCollector::collectUses(SILValue Pointer) {
263256
continue;
264257
}
265258

266-
#define NEVER_OR_SOMETIMES_LOADABLE_CHECKED_REF_STORAGE(Name, ...) \
267-
if (auto *SI = dyn_cast<Store##Name##Inst>(User)) { \
268-
if (UI->getOperandNumber() == 1) { \
269-
PMOUseKind Kind; \
270-
if (SI->isInitializationOfDest()) \
271-
Kind = PMOUseKind::Initialization; \
272-
else \
273-
Kind = PMOUseKind::Assign; \
274-
Uses.emplace_back(User, Kind); \
275-
continue; \
276-
} \
277-
}
278-
#include "swift/AST/ReferenceStorage.def"
279-
280259
if (auto *CAI = dyn_cast<CopyAddrInst>(User)) {
281260
// If this is a copy of a tuple, we should scalarize it so that we don't
282261
// have an access that crosses elements.

lib/SILOptimizer/Mandatory/PredictableMemOpt.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -948,11 +948,6 @@ void AvailableValueDataflowContext::explodeCopyAddr(CopyAddrInst *CAI) {
948948
}
949949
continue;
950950

951-
#define ALWAYS_OR_SOMETIMES_LOADABLE_CHECKED_REF_STORAGE(Name, ...) \
952-
case SILInstructionKind::Name##RetainInst: \
953-
case SILInstructionKind::Name##ReleaseInst: \
954-
case SILInstructionKind::StrongRetain##Name##Inst:
955-
#include "swift/AST/ReferenceStorage.def"
956951
case SILInstructionKind::RetainValueInst:
957952
case SILInstructionKind::StrongRetainInst:
958953
case SILInstructionKind::StrongReleaseInst:

0 commit comments

Comments
 (0)