PGO: Optimize isinst with class probes #55325
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
tenet-performance
Performance related issue
Milestone
Example:
Current codegen:
As you can see - we give up on inlined checks and just call the
CORINFO_HELP_ISINSTANCEOFCLASS
helper.Ideally we could emit a fast-path check from a class probe. So it could be:
I wonder if such an improvement could optimize e.g. this hot-path in JsonSerializer:
where the converter is mostly ObjectDefaultConverter for most benchmarks (in real world apps likehood can be smaller)
The text was updated successfully, but these errors were encountered: