Skip to content

Instantly share code, notes, and snippets.

@pgavlin
Created August 30, 2016 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgavlin/21e57005a7b67edd3796751066d80e2f to your computer and use it in GitHub Desktop.
Save pgavlin/21e57005a7b67edd3796751066d80e2f to your computer and use it in GitHub Desktop.
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