[RyuJit][x86] another forgotten case with unused flag in decomposition.
authorSergey Andreenko <seandree@microsoft.com>
Mon, 11 Dec 2017 21:48:55 +0000 (13:48 -0800)
committerGitHub <noreply@github.com>
Mon, 11 Dec 2017 21:48:55 +0000 (13:48 -0800)
rotate nodes are rare, so it why we did not see it.

src/jit/decomposelongs.cpp

index de5c089..7654c13 100644 (file)
@@ -1553,6 +1553,11 @@ GenTree* DecomposeLongs::DecomposeRotate(LIR::Use& use)
         gtLong->gtOp.gtOp1 = loResult;
         gtLong->gtOp.gtOp2 = hiResult;
 
+        if (tree->IsUnusedValue())
+        {
+            gtLong->SetUnusedValue();
+        }
+
         GenTree* next = tree->gtNext;
         // Remove tree and don't do anything else.
         Range().Remove(tree);