Add and use a MakeSrcRegOptional that validates IsSafeToContainMem was called (#77895)
authorTanner Gooding <tagoo@outlook.com>
Mon, 7 Nov 2022 15:11:41 +0000 (07:11 -0800)
committerGitHub <noreply@github.com>
Mon, 7 Nov 2022 15:11:41 +0000 (07:11 -0800)
commite7a304c942735951bbdb32cde7ba9c37b845f32e
treec4b28114f87dfd16ef91142a5e12970f72f51fbe
parent892ebf4f434a44ed9ec3ebfa9c2c36f8d9d09a47
Add and use a MakeSrcRegOptional that validates IsSafeToContainMem was called (#77895)

* Add and use a MakeSrcRegOptional that validates IsSafeToContainMem was called

* Applying formatting patch

* Revert the MakeSrcRegOptional in ContainCheckDivOrMod due to an assert

* Moving TryMakeSrcContainedOrRegOptional into the lower.cpp file
src/coreclr/jit/lower.cpp
src/coreclr/jit/lower.h
src/coreclr/jit/lowerxarch.cpp