JIT: Fix emitSplit to properly handle the remainder (#90246)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Wed, 9 Aug 2023 22:39:17 +0000 (00:39 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2023 22:39:17 +0000 (00:39 +0200)
commit405a62ffb032f4bcbb47f43258b67c31a51e5342
tree3e0e70dfe36674b9872d0a689360739b2b5c052f
parentd32cb1f4f4f721c4ae004ce990f51de2c238c6ef
JIT: Fix emitSplit to properly handle the remainder (#90246)

emitSplit did not handle the edge case where the last instruction group
of the function/funclet resulted in the size to overflow the max. Use a
lambda so we can call the necessary code both as part of the loop and
after the loop.

Fix #85063
src/coreclr/jit/emit.cpp