JIT: block throw helper merges for first block of a try (#34039)
authorAndy Ayers <andya@microsoft.com>
Wed, 25 Mar 2020 01:43:01 +0000 (18:43 -0700)
committerGitHub <noreply@github.com>
Wed, 25 Mar 2020 01:43:01 +0000 (18:43 -0700)
commit379a3c177a5ad1e45d4a40b83ced8152c730ac61
tree9988411ba5142a7ebd3611b43c135c3f20174376
parent9b92a13dbc92b293f80d5704c51b14b819210958
JIT: block throw helper merges for first block of a try (#34039)

Otherwise we may create a branch into the middle of a try. We could fix the
transform, but if the first block of a try has a throw helper call, the rest
of the try will subsequently be removed, so merging is not all that
interesting.

Addresses an issue that came up in #33924.
src/coreclr/src/jit/flowgraph.cpp
src/coreclr/tests/src/JIT/opt/ThrowHelper/ThrowHelperAtTryEntry.cs [new file with mode: 0644]
src/coreclr/tests/src/JIT/opt/ThrowHelper/ThrowHelperAtTryEntry.csproj [new file with mode: 0644]