Created
August 30, 2016 23:24
-
-
Save pgavlin/21e57005a7b67edd3796751066d80e2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/jit/lowerxarch.cpp b/src/jit/lowerxarch.cpp | |
index 389f9a5..a1e3aa3 100644 | |
--- a/src/jit/lowerxarch.cpp | |
+++ b/src/jit/lowerxarch.cpp | |
@@ -239,9 +239,9 @@ void Lowering::TreeNodeInfoInit(GenTree* tree) | |
#if !defined(_TARGET_64BIT_) | |
case GT_LONG: | |
- if (tree->gtNext == nullptr) | |
+ if ((tree->gtLIRFlags & LIR::Flags::IsUnusedValue) != 0) | |
{ | |
- // An uncontained GT_LONG node needs to consume its source operands | |
+ // An unused GT_LONG node needs to consume its sources. | |
info->srcCount = 2; | |
} | |
else | |
@@ -249,6 +249,7 @@ void Lowering::TreeNodeInfoInit(GenTree* tree) | |
// Passthrough | |
info->srcCount = 0; | |
} | |
+ | |
info->dstCount = 0; | |
break; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment