diff options
| author | bors <bors@rust-lang.org> | 2020-02-11 07:36:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-11 07:36:59 +0000 |
| commit | b6690a8c35e9afa3e0f65140cc69d4ba1b9e78c4 (patch) | |
| tree | 038abc30010b3400090a949e420260c92428fb92 /src/test/debuginfo | |
| parent | dc4242d9052a42cdf329c3a2430d02a3b3d415cb (diff) | |
| parent | 1a8f5efab8ccd9d5f6ac794ab1bcf90b5efa536a (diff) | |
| download | rust-b6690a8c35e9afa3e0f65140cc69d4ba1b9e78c4.tar.gz rust-b6690a8c35e9afa3e0f65140cc69d4ba1b9e78c4.zip | |
Auto merge of #68961 - eddyb:dbg-stack-dunk, r=nagisa
rustc_codegen_ssa: only "spill" SSA-like values to the stack for debuginfo. This is an implementation of the idea described in https://github.com/rust-lang/rust/issues/68817#issuecomment-583719182. In short, instead of debuginfo forcing otherwise-SSA-like MIR locals into `alloca`s, and requiring a `load` for each use (or two, for scalar pairs), the `alloca` is now *only* used for attaching debuginfo with `llvm.dbg.declare`: the `OperandRef` is stored to the `alloca`, but *never loaded* from it. Outside of `debug_introduce_local`, nothing cares about the debuginfo-only `alloca`, and instead works with `OperandRef` the same as MIR locals without debuginfo before this PR. This should have some of the benefits of `llvm.dbg.value`, while working today. cc @nagisa @nikomatsakis
Diffstat (limited to 'src/test/debuginfo')
| -rw-r--r-- | src/test/debuginfo/issue-12886.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/debuginfo/issue-12886.rs b/src/test/debuginfo/issue-12886.rs index 892f7d9485f..389221cbbf1 100644 --- a/src/test/debuginfo/issue-12886.rs +++ b/src/test/debuginfo/issue-12886.rs @@ -6,7 +6,7 @@ // gdb-command:run // gdb-command:next -// gdb-check:[...]25[...]s +// gdb-check:[...]24[...]let s = Some(5).unwrap(); // #break // gdb-command:continue #![feature(omit_gdb_pretty_printer_section)] |
