diff options
author | Sergey Andreenko <seandree@microsoft.com> | 2017-09-28 16:16:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-28 16:16:06 -0700 |
commit | 322b440079db0e61fdd9aba3d95891a1d3d00d0d (patch) | |
tree | 5a98de4fb7ef8025567c251d4978827cfe9d0264 /src/jit | |
parent | 212a6baa708f40e25860581557b3dda717b709d9 (diff) | |
download | coreclr-322b440079db0e61fdd9aba3d95891a1d3d00d0d.tar.gz coreclr-322b440079db0e61fdd9aba3d95891a1d3d00d0d.tar.bz2 coreclr-322b440079db0e61fdd9aba3d95891a1d3d00d0d.zip |
ignore GT_ARGPLACE before gtUseNum check. (#14233)
Diffstat (limited to 'src/jit')
-rw-r--r-- | src/jit/codegenlinear.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jit/codegenlinear.cpp b/src/jit/codegenlinear.cpp index 657d7799c1..1ee288b505 100644 --- a/src/jit/codegenlinear.cpp +++ b/src/jit/codegenlinear.cpp @@ -1112,7 +1112,6 @@ void CodeGen::genConsumeRegAndCopy(GenTree* node, regNumber needReg) void CodeGen::genNumberOperandUse(GenTree* const operand, int& useNum) const { assert(operand != nullptr); - assert(operand->gtUseNum == -1); // Ignore argument placeholders. if (operand->OperGet() == GT_ARGPLACE) @@ -1120,6 +1119,8 @@ void CodeGen::genNumberOperandUse(GenTree* const operand, int& useNum) const return; } + assert(operand->gtUseNum == -1); + if (!operand->isContained() && !operand->IsCopyOrReload()) { operand->gtUseNum = useNum; |