Skip to content

Commit 0fde80f

Browse files
committed
ZJIT: Add TODO to subsume guard dedup into GVN
1 parent 153ab6b commit 0fde80f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

zjit/src/hir.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5254,6 +5254,7 @@ impl Function {
52545254
// type that is the same or narrower, the new guard is redundant.
52555255
// e.g. if we already proved val is Fixnum, a later Fixnum or
52565256
// BasicObject guard on the same val is guaranteed to pass.
5257+
// TODO: Move into global value numbering
52575258
Insn::GuardType { val, guard_type, .. } => {
52585259
if let Some(&(_, _, prev_result)) = seen_guards.iter().find(
52595260
|&&(prev_val, prev_type, _)| prev_val == val && prev_type.is_subtype(guard_type)

0 commit comments

Comments
 (0)