File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -300,25 +300,6 @@ static void convertMemoryReinitToInitForm(SILInstruction *memInst) {
300
300
}
301
301
}
302
302
303
- static bool memInstMustReinitialize (Operand *memOper) {
304
- SILValue address = memOper->get ();
305
- auto *memInst = memOper->getUser ();
306
- switch (memInst->getKind ()) {
307
- default :
308
- return false ;
309
-
310
- case SILInstructionKind::CopyAddrInst: {
311
- auto *CAI = cast<CopyAddrInst>(memInst);
312
- return CAI->getDest () == address && !CAI->isInitializationOfDest ();
313
- }
314
- case SILInstructionKind::StoreInst: {
315
- auto *si = cast<StoreInst>(memInst);
316
- return si->getDest () == address &&
317
- si->getOwnershipQualifier () == StoreOwnershipQualifier::Assign;
318
- }
319
- }
320
- }
321
-
322
303
// ===----------------------------------------------------------------------===//
323
304
// Use State
324
305
// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments