Unreachable try/catch not elided by JIT #9012
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
enhancement
Product code improvement that does NOT require public API changes/additions
optimization
tenet-performance
Performance related issue
Milestone
Consider:
The JitDisasm for Foo is:
but if I remove the try/catch and just leave the Console.WriteLine from the try block:
the else is removed as expected:
This is also impacting the ability for Foo to be inlined, i.e. even with AggressiveInlining it won't be inlined if the try/catch exists in the else branch.
cc: @AndyAyersMS
category:cq
theme:flowgraph
skill-level:intermediate
cost:small
The text was updated successfully, but these errors were encountered: