diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-04-26 18:42:41 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-05-09 17:59:35 +0000 |
| commit | 0bd9bd6b8acfcd102bbc31ac407f1883480accbc (patch) | |
| tree | 8e706028804fd8e0f4eeb7b43894c506a351ac1a | |
| parent | 38612f5ec7a464709f2dabde4edb843695ec84b2 (diff) | |
| download | rust-0bd9bd6b8acfcd102bbc31ac407f1883480accbc.tar.gz rust-0bd9bd6b8acfcd102bbc31ac407f1883480accbc.zip | |
Explicit performance concern.
| -rw-r--r-- | compiler/rustc_mir_transform/src/ref_prop.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/ref_prop.rs b/compiler/rustc_mir_transform/src/ref_prop.rs index a2e76510073..bdb008efe1e 100644 --- a/compiler/rustc_mir_transform/src/ref_prop.rs +++ b/compiler/rustc_mir_transform/src/ref_prop.rs @@ -131,8 +131,8 @@ fn compute_replacement<'tcx>( let maybe_dead = maybe_dead.contains(target.local); if target.projection.first() == Some(&PlaceElem::Deref) { - // We are creating a reborrow. As `place.local` is a reference, removing the - // `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. if maybe_dead { storage_to_remove.insert(target.local); } |
