diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-06-23 15:54:42 +0200 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-07-29 09:50:07 +0200 |
| commit | e2fd9aa33e1887417375e94ec79b39ab4682c8b4 (patch) | |
| tree | 5032ccd5c6ad8b4302329f1134b61b1490b66b23 /tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff | |
| parent | 9e05fb67a3360b9faf49b3484e2ac5cec27a6e78 (diff) | |
| download | rust-e2fd9aa33e1887417375e94ec79b39ab4682c8b4.tar.gz rust-e2fd9aa33e1887417375e94ec79b39ab4682c8b4.zip | |
Set up false edges in `lower_match_tree`
Diffstat (limited to 'tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff')
| -rw-r--r-- | tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff b/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff index 7776ff0fde7..41ae2fd3af3 100644 --- a/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff +++ b/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff @@ -38,15 +38,20 @@ bb2: { _6 = discriminant((_3.1: std::option::Option<u32>)); - switchInt(move _6) -> [1: bb4, 0: bb1, otherwise: bb7]; + switchInt(move _6) -> [1: bb5, 0: bb1, otherwise: bb7]; } bb3: { _7 = discriminant((_3.1: std::option::Option<u32>)); - switchInt(move _7) -> [0: bb5, 1: bb1, otherwise: bb7]; + switchInt(move _7) -> [0: bb4, 1: bb1, otherwise: bb7]; } bb4: { + _0 = const 2_u32; + goto -> bb6; + } + + bb5: { StorageLive(_9); _9 = (((_3.0: std::option::Option<u32>) as Some).0: u32); StorageLive(_10); @@ -57,11 +62,6 @@ goto -> bb6; } - bb5: { - _0 = const 2_u32; - goto -> bb6; - } - bb6: { StorageDead(_3); return; |
