summaryrefslogtreecommitdiff
path: root/src/jit/rationalize.cpp
diff options
context:
space:
mode:
authorPat Gavlin <pagavlin@microsoft.com>2017-08-07 16:41:56 -0700
committerPat Gavlin <pagavlin@microsoft.com>2017-08-07 16:41:56 -0700
commit948760f2f1f25fdcffa89317fece9c23bbdfc6f3 (patch)
tree33c0a2882dcb485d899bbb38d8e79adb5b08afab /src/jit/rationalize.cpp
parentd98f9272f5acae92279f9fa1f83320e78a6e5201 (diff)
downloadcoreclr-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.cpp1
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;