1
Fork 0

Implement a destination propagation pass

This commit is contained in:
Jonas Schievink 2020-05-24 18:22:04 +02:00
parent 9f8ac718f4
commit 78ff69ba10
5 changed files with 742 additions and 1 deletions

View file

@ -204,7 +204,7 @@ impl<'a, 'tcx> HasMoveData<'tcx> for DefinitelyInitializedPlaces<'a, 'tcx> {
/// `EverInitializedPlaces` tracks all places that might have ever been
/// initialized upon reaching a particular point in the control flow
/// for a function, without an intervening `Storage Dead`.
/// for a function, without an intervening `StorageDead`.
///
/// This dataflow is used to determine if an immutable local variable may
/// be assigned to.