From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/mir-opt/dead-store-elimination/cycle.rs | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/test/mir-opt/dead-store-elimination/cycle.rs (limited to 'src/test/mir-opt/dead-store-elimination/cycle.rs') diff --git a/src/test/mir-opt/dead-store-elimination/cycle.rs b/src/test/mir-opt/dead-store-elimination/cycle.rs deleted file mode 100644 index b35ce0bcb..000000000 --- a/src/test/mir-opt/dead-store-elimination/cycle.rs +++ /dev/null @@ -1,22 +0,0 @@ -// unit-test: DeadStoreElimination - -#[inline(never)] -fn cond() -> bool { - false -} - -// EMIT_MIR cycle.cycle.DeadStoreElimination.diff -fn cycle(mut x: i32, mut y: i32, mut z: i32) { - // This example is interesting because the non-transitive version of `MaybeLiveLocals` would - // report that *all* of these stores are live. - while cond() { - let temp = z; - z = y; - y = x; - x = temp; - } -} - -fn main() { - cycle(1, 2, 3); -} -- cgit v1.2.3