File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -238,13 +238,6 @@ bool ElementUseCollector::collectUses(SILValue Pointer) {
238
238
continue ;
239
239
}
240
240
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
-
248
241
// Stores *to* the allocation are writes.
249
242
if (isa<StoreInst>(User) && UI->getOperandNumber () == 1 ) {
250
243
if (PointeeType.is <TupleType>()) {
@@ -263,20 +256,6 @@ bool ElementUseCollector::collectUses(SILValue Pointer) {
263
256
continue ;
264
257
}
265
258
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
-
280
259
if (auto *CAI = dyn_cast<CopyAddrInst>(User)) {
281
260
// If this is a copy of a tuple, we should scalarize it so that we don't
282
261
// have an access that crosses elements.
Original file line number Diff line number Diff line change @@ -948,11 +948,6 @@ void AvailableValueDataflowContext::explodeCopyAddr(CopyAddrInst *CAI) {
948
948
}
949
949
continue ;
950
950
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"
956
951
case SILInstructionKind::RetainValueInst:
957
952
case SILInstructionKind::StrongRetainInst:
958
953
case SILInstructionKind::StrongReleaseInst:
You can’t perform that action at this time.
0 commit comments