Skip to content

Commit 0bd9bd6

Browse files
committed
Explicit performance concern.
1 parent 38612f5 commit 0bd9bd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_mir_transform/src/ref_prop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ fn compute_replacement<'tcx>(
131131
let maybe_dead = maybe_dead.contains(target.local);
132132

133133
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.
134+
// We are creating a reborrow. As `place.local` is a reference, removing the storage
135+
// statements should not make it much harder for LLVM to optimize.
136136
if maybe_dead {
137137
storage_to_remove.insert(target.local);
138138
}

0 commit comments

Comments
 (0)