Fix a minor assert issue in long decomposition (#57326)
authorSingleAccretion <62474226+SingleAccretion@users.noreply.github.com>
Sat, 18 Sep 2021 00:26:04 +0000 (03:26 +0300)
committerGitHub <noreply@github.com>
Sat, 18 Sep 2021 00:26:04 +0000 (17:26 -0700)
commitc980180198a2457cba656a98fd7b4f647cf401e0
treeb043770f2f79f4f179a41232e6fcd8ff11f8be8d
parent7263ce5562ffd4bc515269add609886ea3d907d8
Fix a minor assert issue in long decomposition (#57326)

* Add test

* Fix the issue

Rotation decomposition was risking hitting an
assert in LIR::Use::ReplaceWithLclVar when it
was removing the gtLong node from the linear
order too early.

* Revert "Add test"

No point testing what is not a correctness issue.

* Fix the same issue in shift decomposition as well
src/coreclr/jit/decomposelongs.cpp