Skip to content

Commit a0e538d

Browse files
committed
Add more FileCheck statements in gvn storage tests
1 parent 3b9d22f commit a0e538d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/mir-opt/gvn_storage_twice.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub fn repeat_local_dead(_1: usize, _2: usize, _3: i32) -> i32 {
3838
{
3939
let _4 = [_3; 5];
4040
let _5 = &_4[_1];
41+
// CHECK-NOT: StorageDead(_3);
4142
StorageDead(_3);
4243
// CHECK: _0 = copy _3;
4344
RET = *_5;
@@ -55,6 +56,8 @@ pub fn repeat_local_dead_live(_1: usize, _2: usize, _3: i32) -> i32 {
5556
{
5657
let _4 = [_3; 5];
5758
let _5 = &_4[_1];
59+
// CHECK-NOT: StorageLive(_3);
60+
// CHECK-NOT: StorageDead(_3);
5861
StorageDead(_3);
5962
StorageLive(_3);
6063
// CHECK: _0 = copy _3;

0 commit comments

Comments
 (0)