Skip to content

Commit

Permalink
[mono][jit] Intrinsify more calls to Type:op_Equality (). (#84653)
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz authored Apr 12, 2023
1 parent 99fc175 commit ae4c82b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mono/mono/mini/intrinsics.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,10 @@ get_rttype_ins_relation (MonoCompile *cfg, MonoInst *ins1, MonoInst *ins2, gbool
}
} else if (MONO_TYPE_IS_PRIMITIVE (t1) && MONO_TYPE_IS_PRIMITIVE (t2)) {
rel = t1->type == t2->type ? CMP_EQ : CMP_NE;
} else if (MONO_TYPE_IS_PRIMITIVE (t1) && MONO_TYPE_ISSTRUCT (t2)) {
rel = CMP_NE;
} else if (MONO_TYPE_IS_PRIMITIVE (t2) && MONO_TYPE_ISSTRUCT (t1)) {
rel = CMP_NE;
}
}
return rel;
Expand Down

0 comments on commit ae4c82b

Please sign in to comment.