From 76f5bc6a9ffcd0b3255b5266cc963635a12f6016 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Thu, 27 Jun 2024 14:51:58 +0000 Subject: Create mapped places upon seeing them in the body. --- .../struct.main.DataflowConstProp.32bit.diff | 29 +++++++--------------- 1 file changed, 9 insertions(+), 20 deletions(-) (limited to 'tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.32bit.diff') diff --git a/tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.32bit.diff b/tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.32bit.diff index a6da1483c1a..5e89382ea8f 100644 --- a/tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.32bit.diff +++ b/tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.32bit.diff @@ -106,8 +106,7 @@ - _7 = (_10.0: f32); + _7 = const 4f32; StorageLive(_8); -- _8 = (_10.1: std::option::Option); -+ _8 = const Option::::Some(S(1_i32)); + _8 = (_10.1: std::option::Option); StorageLive(_9); _9 = (_10.2: &[f32]); StorageDead(_10); @@ -157,8 +156,7 @@ + _23 = const 82f32; StorageLive(_24); _37 = deref_copy (*_26); -- _24 = ((*_37).1: std::option::Option); -+ _24 = const Option::::Some(S(35_i32)); + _24 = ((*_37).1: std::option::Option); StorageLive(_25); _38 = deref_copy (*_26); _25 = ((*_38).2: &[f32]); @@ -168,12 +166,11 @@ - _28 = _23; + _28 = const 82f32; StorageLive(_29); -- _29 = _24; -+ _29 = const Option::::Some(S(35_i32)); + _29 = _24; StorageLive(_30); _30 = _25; - _27 = BigStruct(move _28, move _29, move _30); -+ _27 = BigStruct(const 82f32, const Option::::Some(S(35_i32)), move _30); ++ _27 = BigStruct(const 82f32, move _29, move _30); StorageDead(_30); StorageDead(_29); StorageDead(_28); @@ -199,29 +196,21 @@ } } -+ ALLOC2 (size: 8, align: 4) { .. } -+ -+ ALLOC3 (size: 8, align: 4) { .. } -+ -+ ALLOC4 (size: 8, align: 4) { .. } -+ -+ ALLOC5 (size: 8, align: 4) { .. } -+ -+ ALLOC6 (size: 4, align: 4) { .. } ++ ALLOC2 (size: 4, align: 4) { .. } + ALLOC1 (static: BIG_STAT, size: 4, align: 4) { .. } - ALLOC2 (size: 20, align: 4) { .. } -+ ALLOC7 (size: 20, align: 4) { .. } ++ ALLOC3 (size: 20, align: 4) { .. } - ALLOC3 (size: 8, align: 4) { .. } -+ ALLOC8 (size: 8, align: 4) { .. } ++ ALLOC4 (size: 8, align: 4) { .. } ALLOC0 (static: SMALL_STAT, size: 4, align: 4) { .. } - ALLOC4 (size: 20, align: 4) { .. } -+ ALLOC9 (size: 20, align: 4) { .. } ++ ALLOC5 (size: 20, align: 4) { .. } - ALLOC5 (size: 4, align: 4) { .. } -+ ALLOC10 (size: 4, align: 4) { .. } ++ ALLOC6 (size: 4, align: 4) { .. } -- cgit 1.4.1-3-g733a5