diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-03-02 02:14:13 +0100 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-03-02 18:33:19 +0100 |
| commit | 8c3688cbb56b8fcb087261215a9215c001d4ea9d (patch) | |
| tree | 15ca1478cd3d8b531d872b7f77ebe1378797d86d /tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff | |
| parent | 3d3b321c60f6ce1ac59edf0706c083aa7fbd1e83 (diff) | |
| download | rust-8c3688cbb56b8fcb087261215a9215c001d4ea9d.tar.gz rust-8c3688cbb56b8fcb087261215a9215c001d4ea9d.zip | |
Allocate candidate vectors as we sort them
Diffstat (limited to 'tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff')
| -rw-r--r-- | tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff b/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff index 32a8dd8b8b4..0aed59be794 100644 --- a/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff +++ b/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff @@ -30,7 +30,7 @@ StorageDead(_5); StorageDead(_4); _8 = discriminant((_3.0: std::option::Option<u32>)); -- switchInt(move _8) -> [0: bb2, 1: bb3, otherwise: bb1]; +- switchInt(move _8) -> [0: bb3, 1: bb2, otherwise: bb1]; + StorageLive(_11); + _11 = discriminant((_3.1: std::option::Option<u32>)); + StorageLive(_12); @@ -48,12 +48,12 @@ bb2: { - _6 = discriminant((_3.1: std::option::Option<u32>)); -- switchInt(move _6) -> [0: bb5, otherwise: bb1]; +- switchInt(move _6) -> [1: bb4, otherwise: bb1]; - } - - bb3: { - _7 = discriminant((_3.1: std::option::Option<u32>)); -- switchInt(move _7) -> [1: bb4, otherwise: bb1]; +- switchInt(move _7) -> [0: bb5, otherwise: bb1]; - } - - bb4: { |
