Skip to content

Commit

Permalink
Implement a destination propagation pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Sep 18, 2020
1 parent 9f8ac71 commit 78ff69b
Show file tree
Hide file tree
Showing 5 changed files with 742 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir/src/dataflow/impls/mod.rs
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_mir/src/lib.rs
Expand Up @@ -6,6 +6,7 @@ Rust MIR: a lowered representation of Rust.

#![feature(nll)]
#![feature(in_band_lifetimes)]
#![feature(bindings_after_at)]
#![feature(bool_to_option)]
#![feature(box_patterns)]
#![feature(box_syntax)]
Expand Down

0 comments on commit 78ff69b

Please sign in to comment.