diff options
| author | Ralf Jung <post@ralfj.de> | 2022-08-07 10:36:42 -0400 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-08-27 08:53:04 -0400 |
| commit | 4173e971b8c06d00b5bf9fb0133220cb37cf99da (patch) | |
| tree | 08b5566931ea0fa9d772754bce3a8013efed0a7e /src/test | |
| parent | 4065b89b1e7287047d7d6c65e7abd7b8ee70bcf0 (diff) | |
| download | rust-4173e971b8c06d00b5bf9fb0133220cb37cf99da.tar.gz rust-4173e971b8c06d00b5bf9fb0133220cb37cf99da.zip | |
remove an ineffective check in const_prop
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff b/src/test/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff index 4f205667be0..186a9537356 100644 --- a/src/test/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff +++ b/src/test/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff @@ -41,7 +41,8 @@ StorageLive(_4); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+4:9: +4:10 _4 = (_2.1: i32); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+4:13: +4:16 StorageLive(_5); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:9: +5:10 - _5 = (_2.0: i32); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:13: +5:16 +- _5 = (_2.0: i32); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:13: +5:16 ++ _5 = const 1_i32; // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:13: +5:16 nop; // scope 0 at $DIR/mutable_variable_unprop_assign.rs:+0:11: +6:2 StorageDead(_5); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2 StorageDead(_4); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2 |
