Skip to content

Commit

Permalink
[mono][jit] Intrinsify more calls to Type:op_Equality ().
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Apr 11, 2023
1 parent b68f669 commit 77187ce
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 77187ce

Please sign in to comment.