rust/compiler/rustc_middle
bors e99a89c7c0 Auto merge of #73210 - wesleywiser:consts_in_debuginfo, r=oli-obk
[mir-opt] Allow debuginfo to be generated for a constant or a Place

Prior to this commit, debuginfo was always generated by mapping a name
to a Place. This has the side-effect that `SimplifyLocals` cannot remove
locals that are only used for debuginfo because their other uses have
been const-propagated.

To allow these locals to be removed, we now allow debuginfo to point to
a constant value. The `ConstProp` pass detects when debuginfo points to
a local with a known constant value and replaces it with the value. This
allows the later `SimplifyLocals` pass to remove the local.
2020-12-15 08:46:00 +00:00
..
benches
src Auto merge of #73210 - wesleywiser:consts_in_debuginfo, r=oli-obk 2020-12-15 08:46:00 +00:00
Cargo.toml Create rustc_ty_library 2020-12-02 20:28:41 +01:00
README.md

For more information about how rustc works, see the rustc dev guide.