diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-02-12 04:56:03 +0100 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-02-12 17:37:05 +0100 |
| commit | faaf81bbbcd5114ad8268190f3cc235868997ae3 (patch) | |
| tree | ed62909c2ddf40630b2c4adfb60f9585e39b5137 /tests/mir-opt/dataflow-const-prop/enum.constant.DataflowConstProp.64bit.diff | |
| parent | f4cfd872028398da2b2d85c368c51f4d007dc6af (diff) | |
| download | rust-faaf81bbbcd5114ad8268190f3cc235868997ae3.tar.gz rust-faaf81bbbcd5114ad8268190f3cc235868997ae3.zip | |
Start blocks eagerly
Diffstat (limited to 'tests/mir-opt/dataflow-const-prop/enum.constant.DataflowConstProp.64bit.diff')
| -rw-r--r-- | tests/mir-opt/dataflow-const-prop/enum.constant.DataflowConstProp.64bit.diff | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/mir-opt/dataflow-const-prop/enum.constant.DataflowConstProp.64bit.diff b/tests/mir-opt/dataflow-const-prop/enum.constant.DataflowConstProp.64bit.diff index f50a763ef9a..fc814f7e7a9 100644 --- a/tests/mir-opt/dataflow-const-prop/enum.constant.DataflowConstProp.64bit.diff +++ b/tests/mir-opt/dataflow-const-prop/enum.constant.DataflowConstProp.64bit.diff @@ -26,12 +26,16 @@ _1 = const _; StorageLive(_2); - _3 = discriminant(_1); -- switchInt(move _3) -> [0: bb3, 1: bb1, otherwise: bb2]; +- switchInt(move _3) -> [0: bb3, 1: bb2, otherwise: bb1]; + _3 = const 0_isize; -+ switchInt(const 0_isize) -> [0: bb3, 1: bb1, otherwise: bb2]; ++ switchInt(const 0_isize) -> [0: bb3, 1: bb2, otherwise: bb1]; } bb1: { + unreachable; + } + + bb2: { StorageLive(_5); _5 = ((_1 as V2).0: i32); _2 = _5; @@ -39,10 +43,6 @@ goto -> bb4; } - bb2: { - unreachable; - } - bb3: { StorageLive(_4); - _4 = ((_1 as V1).0: i32); |
