diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-05-14 11:25:47 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-05-14 12:06:34 +0000 |
| commit | f40f23587993a3f1afd1405cbcc56bc4324dd378 (patch) | |
| tree | 98fcc5fae93a6a776a77180e28c3a29ca6209747 /tests/mir-opt/pre-codegen/mem_replace.manual_replace.PreCodegen.after.mir | |
| parent | bc888958c9e1fdde09791f15d3421bdc3b6d7d29 (diff) | |
| download | rust-f40f23587993a3f1afd1405cbcc56bc4324dd378.tar.gz rust-f40f23587993a3f1afd1405cbcc56bc4324dd378.zip | |
Merge return place with other locals in CopyProp.
Diffstat (limited to 'tests/mir-opt/pre-codegen/mem_replace.manual_replace.PreCodegen.after.mir')
| -rw-r--r-- | tests/mir-opt/pre-codegen/mem_replace.manual_replace.PreCodegen.after.mir | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/mir-opt/pre-codegen/mem_replace.manual_replace.PreCodegen.after.mir b/tests/mir-opt/pre-codegen/mem_replace.manual_replace.PreCodegen.after.mir index 4fddd50702c..1d23871029d 100644 --- a/tests/mir-opt/pre-codegen/mem_replace.manual_replace.PreCodegen.after.mir +++ b/tests/mir-opt/pre-codegen/mem_replace.manual_replace.PreCodegen.after.mir @@ -4,17 +4,13 @@ fn manual_replace(_1: &mut u32, _2: u32) -> u32 { debug r => _1; // in scope 0 at $DIR/mem_replace.rs:+0:23: +0:24 debug v => _2; // in scope 0 at $DIR/mem_replace.rs:+0:36: +0:37 let mut _0: u32; // return place in scope 0 at $DIR/mem_replace.rs:+0:47: +0:50 - let _3: u32; // in scope 0 at $DIR/mem_replace.rs:+1:9: +1:13 scope 1 { - debug temp => _3; // in scope 1 at $DIR/mem_replace.rs:+1:9: +1:13 + debug temp => _0; // in scope 1 at $DIR/mem_replace.rs:+1:9: +1:13 } bb0: { - StorageLive(_3); // scope 0 at $DIR/mem_replace.rs:+1:9: +1:13 - _3 = (*_1); // scope 0 at $DIR/mem_replace.rs:+1:16: +1:18 + _0 = (*_1); // scope 0 at $DIR/mem_replace.rs:+1:16: +1:18 (*_1) = _2; // scope 1 at $DIR/mem_replace.rs:+2:5: +2:11 - _0 = _3; // scope 1 at $DIR/mem_replace.rs:+3:5: +3:9 - StorageDead(_3); // scope 0 at $DIR/mem_replace.rs:+4:1: +4:2 return; // scope 0 at $DIR/mem_replace.rs:+4:2: +4:2 } } |
