From 274a49132b7728fa7254fa4b5bd0575bdffa8b56 Mon Sep 17 00:00:00 2001 From: Jannis Christopher Köhl Date: Wed, 19 Oct 2022 15:56:58 +0200 Subject: Improve documentation, plus some small changes --- .../mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff | 3 +-- .../previous/control_flow_simplification.hello.DataflowConstProp.diff | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/test/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff b/src/test/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff index fbc95cea7cd..944afed8f46 100644 --- a/src/test/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff +++ b/src/test/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff @@ -53,8 +53,7 @@ StorageDead(_5); // scope 2 at $DIR/checked.rs:+3:17: +3:18 StorageDead(_4); // scope 2 at $DIR/checked.rs:+3:17: +3:18 StorageLive(_7); // scope 3 at $DIR/checked.rs:+5:9: +5:10 -- _7 = const _; // scope 3 at $DIR/checked.rs:+5:13: +5:21 -+ _7 = const i32::MAX; // scope 3 at $DIR/checked.rs:+5:13: +5:21 + _7 = const _; // scope 3 at $DIR/checked.rs:+5:13: +5:21 StorageLive(_8); // scope 4 at $DIR/checked.rs:+6:9: +6:10 StorageLive(_9); // scope 4 at $DIR/checked.rs:+6:13: +6:14 - _9 = _7; // scope 4 at $DIR/checked.rs:+6:13: +6:14 diff --git a/src/test/mir-opt/dataflow-const-prop/previous/control_flow_simplification.hello.DataflowConstProp.diff b/src/test/mir-opt/dataflow-const-prop/previous/control_flow_simplification.hello.DataflowConstProp.diff index f13ca4b62e6..d990c3b07e5 100644 --- a/src/test/mir-opt/dataflow-const-prop/previous/control_flow_simplification.hello.DataflowConstProp.diff +++ b/src/test/mir-opt/dataflow-const-prop/previous/control_flow_simplification.hello.DataflowConstProp.diff @@ -8,8 +8,7 @@ bb0: { StorageLive(_1); // scope 0 at $DIR/control-flow-simplification.rs:+1:8: +1:21 -- _1 = const _; // scope 0 at $DIR/control-flow-simplification.rs:+1:8: +1:21 -+ _1 = const false; // scope 0 at $DIR/control-flow-simplification.rs:+1:8: +1:21 + _1 = const _; // scope 0 at $DIR/control-flow-simplification.rs:+1:8: +1:21 switchInt(const false) -> [false: bb2, otherwise: bb1]; // scope 0 at $DIR/control-flow-simplification.rs:+1:8: +1:21 } -- cgit 1.4.1-3-g733a5