Skip to content

Commit 498f828

Browse files
committed
Remove guard type removal test
1 parent 8493aab commit 498f828

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

zjit/src/hir/opt_tests.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18220,27 +18220,6 @@ mod hir_opt_tests {
1822018220
");
1822118221
}
1822218222

18223-
#[test]
18224-
fn test_dedup_guard_type_across_cfg_join() {
18225-
eval("
18226-
def test(n, cond)
18227-
if cond
18228-
a = n + 1
18229-
else
18230-
a = n + 2
18231-
end
18232-
n + a
18233-
end
18234-
test(1, true); test(1, false)
18235-
");
18236-
let hir = hir_string("test");
18237-
let guard_count = hir.matches("GuardType").count();
18238-
assert_eq!(
18239-
guard_count, 2,
18240-
"expected 2 GuardType instructions after cross-block dedup, found {guard_count}\n\nHIR:\n{hir}"
18241-
);
18242-
}
18243-
1824418223
#[test]
1824518224
fn test_forward_guard_through_conditional_branch() {
1824618225
eval("

0 commit comments

Comments
 (0)