JIT: fix remorph assert in cast long shift optimization (#15386)
authorAndy Ayers <andya@microsoft.com>
Thu, 7 Dec 2017 07:21:07 +0000 (23:21 -0800)
committerGitHub <noreply@github.com>
Thu, 7 Dec 2017 07:21:07 +0000 (23:21 -0800)
commita321506ee6c4459a548d00309808e1ffc9070b9a
tree284eed57596fa86310d8dd17ea5b3b79d0e800b8
parentb13f13ce5d3929ccb7e6648de5db46d4e0feb51e
JIT: fix remorph assert in cast long shift optimization (#15386)

In some cases reachable from IL we may simplify the shift amount,
which sets the MORPHED flag, and then later remorph, leading to an assert
in DEBUG/CHECK builds.

Fix is to clear the MORPHED flag.

Added test case.
src/jit/morph.cpp
tests/src/JIT/Regression/JitBlue/GitHub_15319/GitHub_15319_1.il [new file with mode: 0644]
tests/src/JIT/Regression/JitBlue/GitHub_15319/GitHub_15319_1.ilproj [new file with mode: 0644]