X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fmir-opt%2Fsimplify_try.rs;h=abac66d95c5484b466d8635a887f5ebf13e99b0e;hb=344f8d9e6237d2dc25d57dbc8448853084f63779;hp=d85eff45b49899d2971f2fb05061306d746bc1d8;hpb=a29ba0010765cb63de71a92df8c701e8e87878fc;p=rust.git diff --git a/src/test/mir-opt/simplify_try.rs b/src/test/mir-opt/simplify_try.rs index d85eff45b49..abac66d95c5 100644 --- a/src/test/mir-opt/simplify_try.rs +++ b/src/test/mir-opt/simplify_try.rs @@ -47,22 +47,22 @@ fn main() { // } // bb0: { // _5 = discriminant(_1); -// switchInt(move _5) -> [0isize: bb3, otherwise: bb1]; +// switchInt(move _5) -> [0isize: bb1, otherwise: bb2]; // } // bb1: { +// _10 = ((_1 as Ok).0: u32); +// ((_0 as Ok).0: u32) = move _10; +// discriminant(_0) = 0; +// goto -> bb3; +// } +// bb2: { // _6 = ((_1 as Err).0: i32); // ((_0 as Err).0: i32) = move _6; // discriminant(_0) = 1; -// goto -> bb2; -// } -// bb2: { -// return; +// goto -> bb3; // } // bb3: { -// _10 = ((_1 as Ok).0: u32); -// ((_0 as Ok).0: u32) = move _10; -// discriminant(_0) = 0; -// goto -> bb2; +// return; // } // } // END rustc.try_identity.SimplifyArmIdentity.before.mir @@ -106,22 +106,22 @@ fn main() { // } // bb0: { // _5 = discriminant(_1); -// switchInt(move _5) -> [0isize: bb3, otherwise: bb1]; +// switchInt(move _5) -> [0isize: bb1, otherwise: bb2]; // } // bb1: { // _0 = move _1; // nop; // nop; -// goto -> bb2; +// goto -> bb3; // } // bb2: { -// return; -// } -// bb3: { // _0 = move _1; // nop; // nop; -// goto -> bb2; +// goto -> bb3; +// } +// bb3: { +// return; // } // } // END rustc.try_identity.SimplifyArmIdentity.after.mir @@ -165,16 +165,16 @@ fn main() { // } // bb0: { // _5 = discriminant(_1); -// goto -> bb2; +// goto -> bb1; // } // bb1: { -// return; -// } -// bb2: { // _0 = move _1; // nop; // nop; -// goto -> bb1; +// goto -> bb2; +// } +// bb2: { +// return; // } // } // END rustc.try_identity.SimplifyBranchSame.after.mir