JIT: avoid folding operations with relocatable immediates (dotnet/coreclr#21511)
authorAndy Ayers <andya@microsoft.com>
Thu, 13 Dec 2018 23:03:34 +0000 (15:03 -0800)
committerGitHub <noreply@github.com>
Thu, 13 Dec 2018 23:03:34 +0000 (15:03 -0800)
commitcdd65fbe1daf1fa339dd5c8fab2634d616df61fe
tree6b992b30095b399351114240a4a8d00afaa4a617
parent99879b650486e89e77ce2d894b28c0cbae0f5a05
JIT: avoid folding operations with relocatable immediates (dotnet/coreclr#21511)

In general, don't fold operations on relocatable immediates. Only allow EQ/NE folding, since relocation should preserve identity but not bit values or relative comparisons.

Closes dotnet/coreclr#21483.

Commit migrated from https://github.com/dotnet/coreclr/commit/6b9e1dc685e55430d1471baa799db32bc2807a1c
src/coreclr/src/jit/gentree.cpp