summaryrefslogtreecommitdiff
path: root/tests/src/dir.props
diff options
context:
space:
mode:
authorEugene Rozenfeld <erozen@microsoft.com>2018-08-01 15:48:41 -0700
committerGitHub <noreply@github.com>2018-08-01 15:48:41 -0700
commitfd4bd60a0b405126f0d7954861bbbc2504192bd4 (patch)
treea93e8ab6d6215e0aa66dd0506b048614ca5b9d97 /tests/src/dir.props
parentc4c16723a83c995838508ed7bca7fb99687f6d40 (diff)
downloadcoreclr-fd4bd60a0b405126f0d7954861bbbc2504192bd4.tar.gz
coreclr-fd4bd60a0b405126f0d7954861bbbc2504192bd4.tar.bz2
coreclr-fd4bd60a0b405126f0d7954861bbbc2504192bd4.zip
Fix value number update in fgMorphCast. (#19226)
removing GT_CAST nodes. It caused a problem for cases where GT_CAST operand is a constant (e.g., GT_CNS_INT). In these cases the value number shouldn't change since there is an assumption that constant nodes have known constant value numbers. The bug was found by ILGEN, I created a corresponding C# repro. Without the fix this assert fires: https://github.com/dotnet/coreclr/blob/1f28125ad1f9975fbe68dd6839908aa6e63fc43b#gitext://gotocommit/1f28125ad1f9975fbe68dd6839908aa6e63fc43b/src/jit/assertionprop.cpp#L2687 The fix is to update value numbers only when we changed the operand of GT_CAST and value number wasn't updated otherwise (e.g., in optNarrowTree). I verified no x64 diffs in jit-diff diff --pmi --tests --frameworks (with pri0 and pri1 tests).
Diffstat (limited to 'tests/src/dir.props')
0 files changed, 0 insertions, 0 deletions