rust/compiler/rustc_codegen_ssa/src
Wesley Wiser 01aec8d185 [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-06 20:48:25 -05:00
..
back Add support for Arm64 Catalyst on ARM Macs 2020-11-26 11:31:59 +01:00
coverageinfo Updated links to LLVM 11 docs and types 2020-11-23 19:15:10 -08:00
debuginfo compiler: fold by value 2020-11-16 22:34:57 +01:00
mir [mir-opt] Allow debuginfo to be generated for a constant or a Place 2020-12-06 20:48:25 -05:00
traits rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
base.rs compiler: fold by value 2020-11-16 22:34:57 +01:00
common.rs Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
glue.rs Change ty.kind to a method 2020-09-04 17:47:51 +02:00
lib.rs Move finalize_session_directory call out of cg_llvm 2020-10-10 15:20:35 +02:00
meth.rs
mono_item.rs
target_features.rs Rollup merge of #78361 - DevJPM:master, r=workingjubilee 2020-11-18 15:46:19 +01:00