summaryrefslogtreecommitdiff
path: root/src/jit/gentree.h
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2019-01-10 18:35:56 -0800
committerGitHub <noreply@github.com>2019-01-10 18:35:56 -0800
commitb3881b417c808fa565f85d1ba04d126a333eaa38 (patch)
tree6a14d0ef684925567b4c2f79fb3456daabe2cde7 /src/jit/gentree.h
parent360e70f8935bf1c429b61713affe38114378a928 (diff)
parent34569bd74ec2df228a054e9f1c9fb6fb53b9fe17 (diff)
downloadcoreclr-b3881b417c808fa565f85d1ba04d126a333eaa38.tar.gz
coreclr-b3881b417c808fa565f85d1ba04d126a333eaa38.tar.bz2
coreclr-b3881b417c808fa565f85d1ba04d126a333eaa38.zip
Merge pull request #21928 from fiigii/fixMulx
Don't optimize MultiplyNoFlags away
Diffstat (limited to 'src/jit/gentree.h')
-rw-r--r--src/jit/gentree.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jit/gentree.h b/src/jit/gentree.h
index 49c5682df0..6a1fd4a9bb 100644
--- a/src/jit/gentree.h
+++ b/src/jit/gentree.h
@@ -4072,6 +4072,10 @@ struct GenTreeHWIntrinsic : public GenTreeJitIntrinsic
, gtHWIntrinsicId(hwIntrinsicID)
, gtIndexBaseType(TYP_UNKNOWN)
{
+ if (OperIsMemoryStore())
+ {
+ gtFlags |= (GTF_GLOB_REF | GTF_ASG);
+ }
}
GenTreeHWIntrinsic(
@@ -4080,6 +4084,10 @@ struct GenTreeHWIntrinsic : public GenTreeJitIntrinsic
, gtHWIntrinsicId(hwIntrinsicID)
, gtIndexBaseType(TYP_UNKNOWN)
{
+ if (OperIsMemoryStore())
+ {
+ gtFlags |= (GTF_GLOB_REF | GTF_ASG);
+ }
}
// Note that HW Instrinsic instructions are a sub class of GenTreeOp which only supports two operands