]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/inline/inline_instruction_set.default.Inline.diff
Rollup merge of #94657 - fee1-dead:const_slice_index, r=oli-obk
[rust.git] / src / test / mir-opt / inline / inline_instruction_set.default.Inline.diff
1 - // MIR for `default` before Inline
2 + // MIR for `default` after Inline
3   
4   fn default() -> () {
5       let mut _0: ();                      // return place in scope 0 at $DIR/inline-instruction-set.rs:50:18: 50:18
6       let _1: ();                          // in scope 0 at $DIR/inline-instruction-set.rs:51:5: 51:26
7       let _2: ();                          // in scope 0 at $DIR/inline-instruction-set.rs:52:5: 52:26
8       let _3: ();                          // in scope 0 at $DIR/inline-instruction-set.rs:53:5: 53:30
9 +     scope 1 (inlined instruction_set_default) { // at $DIR/inline-instruction-set.rs:53:5: 53:30
10 +     }
11   
12       bb0: {
13           StorageLive(_1);                 // scope 0 at $DIR/inline-instruction-set.rs:51:5: 51:26
14           _1 = instruction_set_a32() -> bb1; // scope 0 at $DIR/inline-instruction-set.rs:51:5: 51:26
15                                            // mir::Constant
16                                            // + span: $DIR/inline-instruction-set.rs:51:5: 51:24
17                                            // + literal: Const { ty: fn() {instruction_set_a32}, val: Value(Scalar(<ZST>)) }
18       }
19   
20       bb1: {
21           StorageDead(_1);                 // scope 0 at $DIR/inline-instruction-set.rs:51:26: 51:27
22           StorageLive(_2);                 // scope 0 at $DIR/inline-instruction-set.rs:52:5: 52:26
23           _2 = instruction_set_t32() -> bb2; // scope 0 at $DIR/inline-instruction-set.rs:52:5: 52:26
24                                            // mir::Constant
25                                            // + span: $DIR/inline-instruction-set.rs:52:5: 52:24
26                                            // + literal: Const { ty: fn() {instruction_set_t32}, val: Value(Scalar(<ZST>)) }
27       }
28   
29       bb2: {
30           StorageDead(_2);                 // scope 0 at $DIR/inline-instruction-set.rs:52:26: 52:27
31           StorageLive(_3);                 // scope 0 at $DIR/inline-instruction-set.rs:53:5: 53:30
32 -         _3 = instruction_set_default() -> bb3; // scope 0 at $DIR/inline-instruction-set.rs:53:5: 53:30
33 -                                          // mir::Constant
34 -                                          // + span: $DIR/inline-instruction-set.rs:53:5: 53:28
35 -                                          // + literal: Const { ty: fn() {instruction_set_default}, val: Value(Scalar(<ZST>)) }
36 -     }
37
38 -     bb3: {
39           StorageDead(_3);                 // scope 0 at $DIR/inline-instruction-set.rs:53:30: 53:31
40           _0 = const ();                   // scope 0 at $DIR/inline-instruction-set.rs:50:18: 54:2
41           return;                          // scope 0 at $DIR/inline-instruction-set.rs:54:2: 54:2
42       }
43   }
44