We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f6fd0b commit 0c2fd6bCopy full SHA for 0c2fd6b
lib/SILOptimizer/Transforms/SILMem2Reg.cpp
@@ -752,16 +752,6 @@ StoreInst *StackAllocationPromoter::promoteAllocationInBlock(
752
continue;
753
}
754
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
-
765
// Stop on deallocation.
766
if (auto *dsi = dyn_cast<DeallocStackInst>(inst)) {
767
if (dsi->getOperand() == asi)
0 commit comments