Skip to content

Commit 0c2fd6b

Browse files
committed
Remove unnecessary edge case
1 parent 7f6fd0b commit 0c2fd6b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/SILOptimizer/Transforms/SILMem2Reg.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -752,16 +752,6 @@ StoreInst *StackAllocationPromoter::promoteAllocationInBlock(
752752
continue;
753753
}
754754

755-
if (auto *dvi = dyn_cast<DestroyValueInst>(inst)) {
756-
if (runningVals &&
757-
dvi->getOperand() == runningVals->value.replacement(asi, dvi)) {
758-
// Reset LastStore.
759-
// So that we don't end up passing dead values as phi args in
760-
// StackAllocationPromoter::fixBranchesAndUses
761-
lastStoreInst = llvm::None;
762-
}
763-
}
764-
765755
// Stop on deallocation.
766756
if (auto *dsi = dyn_cast<DeallocStackInst>(inst)) {
767757
if (dsi->getOperand() == asi)

0 commit comments

Comments
 (0)