We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 153ab6b commit 0fde80fCopy full SHA for 0fde80f
1 file changed
zjit/src/hir.rs
@@ -5254,6 +5254,7 @@ impl Function {
5254
// type that is the same or narrower, the new guard is redundant.
5255
// e.g. if we already proved val is Fixnum, a later Fixnum or
5256
// BasicObject guard on the same val is guaranteed to pass.
5257
+ // TODO: Move into global value numbering
5258
Insn::GuardType { val, guard_type, .. } => {
5259
if let Some(&(_, _, prev_result)) = seen_guards.iter().find(
5260
|&&(prev_val, prev_type, _)| prev_val == val && prev_type.is_subtype(guard_type)
0 commit comments