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 77d5711 commit f53476bCopy full SHA for f53476b
tests/mir-opt/copy-prop/dead_stores_better.rs
@@ -1,4 +1,3 @@
1
-// skip-filecheck
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
// This is a copy of the `dead_stores_79191` test, except that we turn on DSE. This demonstrates
4
// that that pass enables this one to do more optimizations.
@@ -12,6 +11,14 @@ fn id<T>(x: T) -> T {
12
11
13
// EMIT_MIR dead_stores_better.f.CopyProp.after.mir
14
pub fn f(mut a: usize) -> usize {
+ // CHECK-LABEL: fn f(
15
+ // CHECK: debug a => [[a:_.*]];
16
+ // CHECK: debug b => [[b:_.*]];
17
+ // CHECK: [[b]] = copy [[a]];
18
+ // CHECK: [[a]] = const 5_usize;
19
+ // CHECK: [[a]] = copy [[b]];
20
+ // CHECK: [[c:_.*]] = copy [[a]]
21
+ // CHECK: id::<usize>(move [[c]])
22
let b = a;
23
a = 5;
24
a = b;
0 commit comments