We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38612f5 commit 0bd9bd6Copy full SHA for 0bd9bd6
compiler/rustc_mir_transform/src/ref_prop.rs
@@ -131,8 +131,8 @@ fn compute_replacement<'tcx>(
131
let maybe_dead = maybe_dead.contains(target.local);
132
133
if target.projection.first() == Some(&PlaceElem::Deref) {
134
- // We are creating a reborrow. As `place.local` is a reference, removing the
135
- // `StorageDead` is fine.
+ // We are creating a reborrow. As `place.local` is a reference, removing the storage
+ // statements should not make it much harder for LLVM to optimize.
136
if maybe_dead {
137
storage_to_remove.insert(target.local);
138
}
0 commit comments