JIT: Always consider empty remainders to be dying in physical promotion (#88665)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Thu, 13 Jul 2023 03:06:28 +0000 (05:06 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Jul 2023 03:06:28 +0000 (05:06 +0200)
commitd9f6b98de38081b71fa9b5a463f302288546435d
treefa33697593e5bccf758da350a4b0e6f1fa62e50e
parent65611bdfa0583f49347a5fcfb99b843381b7d620
JIT: Always consider empty remainders to be dying in physical promotion (#88665)

Liveness takes a few shortcuts that means it doesn't always handle the
case where there is no remainder as the remainder dying, so add a
special case in StructDeaths::IsRemainderDying to take care of this
case.

Some minor improvements from more last-use copy omission are expected.
src/coreclr/jit/promotion.h
src/coreclr/jit/promotionliveness.cpp