@@ -202,10 +202,6 @@ class PrunedLiveBlocks {
202
202
203
203
bool isInitialized () const { return initializedFlag; }
204
204
205
- void invalidate () {
206
- initializedFlag = false ;
207
- }
208
-
209
205
void initializeDiscoveredBlocks (
210
206
SmallVectorImpl<SILBasicBlock *> *discoveredBlocks) {
211
207
assert (!isInitialized () && " cannot reinitialize after blocks are live" );
@@ -371,11 +367,6 @@ class PrunedLiveness {
371
367
372
368
bool empty () const { return users.empty (); }
373
369
374
- void invalidate () {
375
- liveBlocks.invalidate ();
376
- users.clear ();
377
- }
378
-
379
370
void initializeDiscoveredBlocks (
380
371
SmallVectorImpl<SILBasicBlock *> *discoveredBlocks) {
381
372
liveBlocks.initializeDiscoveredBlocks (discoveredBlocks);
@@ -639,12 +630,6 @@ class SSAPrunedLiveness : public PrunedLiveRange<SSAPrunedLiveness> {
639
630
640
631
SILValue getDef () const { return def; }
641
632
642
- void invalidate () {
643
- def = SILValue ();
644
- defInst = nullptr ;
645
- PrunedLiveRange::invalidate ();
646
- }
647
-
648
633
void initializeDef (SILValue def) {
649
634
assert (!this ->def && " reinitialization" );
650
635
@@ -710,10 +695,6 @@ class MultiDefPrunedLiveness : public PrunedLiveRange<MultiDefPrunedLiveness> {
710
695
: PrunedLiveRange(function, discoveredBlocks), defs(function),
711
696
defBlocks (function) {}
712
697
713
- void invalidate () {
714
- PrunedLiveRange::invalidate ();
715
- }
716
-
717
698
void initializeDef (SILInstruction *defInst) {
718
699
initializeDefNode (cast<SILNode>(defInst));
719
700
}
@@ -800,12 +781,6 @@ class DiagnosticPrunedLiveness : public SSAPrunedLiveness {
800
781
: SSAPrunedLiveness(function, discoveredBlocks),
801
782
nonLifetimeEndingUsesInLiveOut (nonLifetimeEndingUsesInLiveOut) {}
802
783
803
- void invalidate () {
804
- SSAPrunedLiveness::invalidate ();
805
- if (nonLifetimeEndingUsesInLiveOut)
806
- nonLifetimeEndingUsesInLiveOut->clear ();
807
- }
808
-
809
784
void updateForUse (SILInstruction *user, bool lifetimeEnding);
810
785
811
786
using NonLifetimeEndingUsesInLiveOutRange =
0 commit comments