[LVA] Update ignore instructions RLE and DSE.

RLE can ignore end_access, set_deallocating, and dealloc_ref instructions.

DSE can ignore end_access and set_deallocating.
This commit is contained in:
zoecarver
2020-04-19 12:50:13 -07:00
parent 554cbdae17
commit 34ad7d0891
4 changed files with 42 additions and 0 deletions

View File

@@ -160,6 +160,9 @@ static bool isRLEInertInstruction(SILInstruction *Inst) {
case SILInstructionKind::IsEscapingClosureInst:
case SILInstructionKind::IsUniqueInst:
case SILInstructionKind::FixLifetimeInst:
case SILInstructionKind::EndAccessInst:
case SILInstructionKind::SetDeallocatingInst:
case SILInstructionKind::DeallocRefInst:
return true;
default:
return false;