Skip to content

Commit c49d4c4

Browse files
committed
Delete now-outdated unit test that was testing the deleted logic.
1 parent 2814883 commit c49d4c4

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

cranelift/codegen/src/machinst/lower.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,25 +1837,4 @@ mod tests {
18371837
assert_eq!(uses[v4], ValueUseState::Once);
18381838
assert_eq!(uses[v5], ValueUseState::Once);
18391839
}
1840-
1841-
#[test]
1842-
fn results_used_twice_but_not_operands() {
1843-
let mut func = Function::new();
1844-
let block0 = func.dfg.make_block();
1845-
let mut pos = FuncCursor::new(&mut func);
1846-
pos.insert_block(block0);
1847-
let v1 = pos.ins().iconst(types::I64, 0);
1848-
let v2 = pos.ins().iconst(types::I64, 1);
1849-
let v3 = pos.ins().iconcat(v1, v2);
1850-
let (v4, v5) = pos.ins().isplit(v3);
1851-
pos.ins().return_(&[v4, v4]);
1852-
let func = pos.func;
1853-
1854-
let uses = super::compute_use_states(&func, None);
1855-
assert_eq!(uses[v1], ValueUseState::Once);
1856-
assert_eq!(uses[v2], ValueUseState::Once);
1857-
assert_eq!(uses[v3], ValueUseState::Once);
1858-
assert_eq!(uses[v4], ValueUseState::Multiple);
1859-
assert_eq!(uses[v5], ValueUseState::Unused);
1860-
}
18611840
}

0 commit comments

Comments
 (0)