summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPat Gavlin <pgavlin@gmail.com>2017-04-14 22:16:44 -0700
committerGitHub <noreply@github.com>2017-04-14 22:16:44 -0700
commit57b7abfe5e6581e611e630a47b7f5d7a24ff31f5 (patch)
tree51cfbd7699705fa1b6a36eefed44a124ae63d499 /src
parentb23add035ef6c7d599cf439be0ad7199c0587a7d (diff)
parent53ba241444e15bc772b20b434fd113a728f1b650 (diff)
downloadcoreclr-57b7abfe5e6581e611e630a47b7f5d7a24ff31f5.tar.gz
coreclr-57b7abfe5e6581e611e630a47b7f5d7a24ff31f5.tar.bz2
coreclr-57b7abfe5e6581e611e630a47b7f5d7a24ff31f5.zip
Merge pull request #10958 from pgavlin/VSO397793
Preserve VNs in fgMorphIntoHelperCall.
Diffstat (limited to 'src')
-rw-r--r--src/jit/morph.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jit/morph.cpp b/src/jit/morph.cpp
index dd1a59bf06..aad413d1cb 100644
--- a/src/jit/morph.cpp
+++ b/src/jit/morph.cpp
@@ -60,7 +60,8 @@ GenTreePtr Compiler::fgMorphCastIntoHelper(GenTreePtr tree, int helper, GenTreeP
GenTreePtr Compiler::fgMorphIntoHelperCall(GenTreePtr tree, int helper, GenTreeArgList* args)
{
- tree->ChangeOper(GT_CALL);
+ // The helper call ought to be semantically equivalent to the original node, so preserve its VN.
+ tree->ChangeOper(GT_CALL, GenTree::PRESERVE_VN);
tree->gtFlags |= GTF_CALL;
if (args)