Skip to content

Commit 2f5528c

Browse files
authored
Merge pull request #62431 from gottesmm/pr-3179685fa24dfdc17f53ec40c39d583761cd0da5
Delete dead function. NFC.
2 parents a90d24a + 3739624 commit 2f5528c

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

lib/SILOptimizer/Mandatory/MoveKillsCopyableAddressesChecker.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -300,25 +300,6 @@ static void convertMemoryReinitToInitForm(SILInstruction *memInst) {
300300
}
301301
}
302302

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-
322303
//===----------------------------------------------------------------------===//
323304
// Use State
324305
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)