diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2017-07-18 09:24:26 -0700 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2017-07-18 14:10:53 -0700 |
commit | 058c8e068fe484dfdd280d5956f66f88f1a0e095 (patch) | |
tree | f56129de08ce092afaa16dff3537351bec48cc46 /src/jit/decomposelongs.cpp | |
parent | d9925811fc787ed0668c73cc3155ffb2e24d161d (diff) | |
download | coreclr-058c8e068fe484dfdd280d5956f66f88f1a0e095.tar.gz coreclr-058c8e068fe484dfdd280d5956f66f88f1a0e095.tar.bz2 coreclr-058c8e068fe484dfdd280d5956f66f88f1a0e095.zip |
Add helpers to set, clear, and check IsUnusedValue.
Just what it says on the tin.
Diffstat (limited to 'src/jit/decomposelongs.cpp')
-rw-r--r-- | src/jit/decomposelongs.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/jit/decomposelongs.cpp b/src/jit/decomposelongs.cpp index 9c67549012..96d3b0bb71 100644 --- a/src/jit/decomposelongs.cpp +++ b/src/jit/decomposelongs.cpp @@ -341,11 +341,11 @@ GenTree* DecomposeLongs::FinalizeDecomposition(LIR::Use& use, GenTree* gtLong = new (m_compiler, GT_LONG) GenTreeOp(GT_LONG, TYP_LONG, loResult, hiResult); if (use.IsDummyUse()) { - gtLong->gtLIRFlags |= LIR::Flags::IsUnusedValue; + gtLong->SetUnusedValue(); } - loResult->gtLIRFlags &= ~LIR::Flags::IsUnusedValue; - hiResult->gtLIRFlags &= ~LIR::Flags::IsUnusedValue; + loResult->ClearUnusedValue(); + hiResult->ClearUnusedValue(); Range().InsertAfter(insertResultAfter, gtLong); @@ -1127,7 +1127,7 @@ GenTree* DecomposeLongs::DecomposeShift(LIR::Use& use) } else { - hiOp1->gtLIRFlags |= LIR::Flags::IsUnusedValue; + hiOp1->SetUnusedValue(); } if (count < 64) @@ -1175,7 +1175,7 @@ GenTree* DecomposeLongs::DecomposeShift(LIR::Use& use) } else { - loOp1->gtLIRFlags |= LIR::Flags::IsUnusedValue; + loOp1->SetUnusedValue(); } // Zero out hi (shift of >= 64 bits moves all the bits out of the two registers) @@ -1235,7 +1235,7 @@ GenTree* DecomposeLongs::DecomposeShift(LIR::Use& use) } else { - loOp1->gtLIRFlags |= LIR::Flags::IsUnusedValue; + loOp1->SetUnusedValue(); } assert(count >= 32); @@ -1271,7 +1271,7 @@ GenTree* DecomposeLongs::DecomposeShift(LIR::Use& use) } else { - hiOp1->gtLIRFlags |= LIR::Flags::IsUnusedValue; + hiOp1->SetUnusedValue(); } // Zero out lo @@ -1333,7 +1333,7 @@ GenTree* DecomposeLongs::DecomposeShift(LIR::Use& use) } else { - loOp1->gtLIRFlags |= LIR::Flags::IsUnusedValue; + loOp1->SetUnusedValue(); } if (count < 64) @@ -1426,9 +1426,9 @@ GenTree* DecomposeLongs::DecomposeShift(LIR::Use& use) GenTree* call = m_compiler->gtNewHelperCallNode(helper, TYP_LONG, 0, argList); call->gtFlags |= shift->gtFlags & GTF_ALL_EFFECT; - if ((shift->gtLIRFlags & LIR::Flags::IsUnusedValue) != 0) + if (shift->IsUnusedValue()) { - call->gtLIRFlags |= LIR::Flags::IsUnusedValue; + call->SetUnusedValue(); } GenTreeCall* callNode = call->AsCall(); |