diff options
author | Eugene Rozenfeld <erozen@microsoft.com> | 2017-08-31 21:29:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 21:29:51 -0700 |
commit | 8a338880b527a86ccd33c29b1aa7baccd3f4b998 (patch) | |
tree | 88d92a502a5668a075211741a5063dffd023fb7e /src/jit/decomposelongs.cpp | |
parent | 8a036ea897835e72ba4f0c0fbe4fa2198b850e1f (diff) | |
download | coreclr-8a338880b527a86ccd33c29b1aa7baccd3f4b998.tar.gz coreclr-8a338880b527a86ccd33c29b1aa7baccd3f4b998.tar.bz2 coreclr-8a338880b527a86ccd33c29b1aa7baccd3f4b998.zip |
Enable checking of GTF_EXCEPT and GTF_ASG flags. (#13668)
* Enable checking of GTF_EXCEPT and GTF_ASG flags.
fgDebugCheckFlags is modified to check that GTF_EXCEPT and GTF_ASG are set precisely when needed.
It's also modified to handle several special operators correctly.
fgAddrCouldBeNull is updated to check for handles, implicit byref locals, and stack byrefs.
OperMayThrow is modified to handle several operators correctly.
GTF_IND_NONFAULTING is reused on operations for which OperIsIndir() is true and on GT_ARR_LENGTH.
Various places in morph are updated to set side effect flags correctly.
gtUpdateSideEffects is re-written so that it's precise for GTF_ASG and GTF_EXCEPT
and conservatively correct for the other side effects. It's now called from more places
to keep the flags up-to-date after transformations.
NoThrow in HelperCallProperties is updated and GTF_EXCEPT flag is set on helper calls according to
that property.
optRemoveRangeCheck is cleaned up and simplified.
Diffstat (limited to 'src/jit/decomposelongs.cpp')
-rw-r--r-- | src/jit/decomposelongs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/decomposelongs.cpp b/src/jit/decomposelongs.cpp index 4a02f06c5f..174bba2a56 100644 --- a/src/jit/decomposelongs.cpp +++ b/src/jit/decomposelongs.cpp @@ -1429,7 +1429,7 @@ GenTree* DecomposeLongs::DecomposeShift(LIR::Use& use) GenTreeArgList* argList = m_compiler->gtNewArgList(loOp1, hiOp1, shiftByOp); - GenTree* call = m_compiler->gtNewHelperCallNode(helper, TYP_LONG, 0, argList); + GenTree* call = m_compiler->gtNewHelperCallNode(helper, TYP_LONG, argList); call->gtFlags |= shift->gtFlags & GTF_ALL_EFFECT; if (shift->IsUnusedValue()) |