diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2017-08-07 16:41:56 -0700 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2017-08-07 16:41:56 -0700 |
commit | 948760f2f1f25fdcffa89317fece9c23bbdfc6f3 (patch) | |
tree | 33c0a2882dcb485d899bbb38d8e79adb5b08afab /src/jit/rationalize.cpp | |
parent | d98f9272f5acae92279f9fa1f83320e78a6e5201 (diff) | |
download | coreclr-948760f2f1f25fdcffa89317fece9c23bbdfc6f3.tar.gz coreclr-948760f2f1f25fdcffa89317fece9c23bbdfc6f3.tar.bz2 coreclr-948760f2f1f25fdcffa89317fece9c23bbdfc6f3.zip |
Fix VSO 471670.
If we remove a NOP during rationalize that is unused, we need to ensure
that its operand is also marked as an unused value.
Diffstat (limited to 'src/jit/rationalize.cpp')
-rw-r--r-- | src/jit/rationalize.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jit/rationalize.cpp b/src/jit/rationalize.cpp index 23d4f99fb8..5244c7424d 100644 --- a/src/jit/rationalize.cpp +++ b/src/jit/rationalize.cpp @@ -731,6 +731,7 @@ Compiler::fgWalkResult Rationalizer::RewriteNode(GenTree** useEdge, ArrayStack<G { use.ReplaceWith(comp, node->gtGetOp1()); BlockRange().Remove(node); + node = node->gtGetOp1(); } break; |