File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
lib/SILOptimizer/Transforms Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -642,6 +642,12 @@ SILInstruction *StackAllocationPromoter::promoteAllocationInBlock(
642
642
643
643
// RunningVal is the current value in the stack location.
644
644
// We don't know the value of the alloca until we find the first store.
645
+ //
646
+ // States:
647
+ // - None: no values have been encountered within this block
648
+ // - Some + !isStorageValid: a value was encountered but is no longer stored--
649
+ // it has been destroy_addr'd, etc
650
+ // - Some + isStorageValid: a value was encountered and is currently stored
645
651
Optional<StorageStateTracking<LiveValues>> runningVals;
646
652
// Keep track of the last StoreInst that we found and the BeginBorrowInst and
647
653
// CopyValueInst that we created in response if the alloc_stack was lexical.
You can’t perform that action at this time.
0 commit comments