We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff260c8 commit 109870dCopy full SHA for 109870d
tests/mir-opt/copy-prop/dead_stores_79191.rs
@@ -1,4 +1,3 @@
1
-// skip-filecheck
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
//@ test-mir-pass: CopyProp
4
@@ -8,6 +7,14 @@ fn id<T>(x: T) -> T {
8
7
9
// EMIT_MIR dead_stores_79191.f.CopyProp.after.mir
10
fn f(mut a: usize) -> usize {
+ // CHECK-LABEL: fn f(
11
+ // CHECK: debug a => [[a:_.*]];
12
+ // CHECK: debug b => [[b:_.*]];
13
+ // CHECK: [[b]] = copy [[a]];
14
+ // CHECK: [[a]] = const 5_usize;
15
+ // CHECK: [[a]] = copy [[b]];
16
+ // CHECK: [[c:_.*]] = copy [[a]]
17
+ // CHECK: id::<usize>(move [[c]])
18
let b = a;
19
a = 5;
20
a = b;
0 commit comments