diff options
author | Andy Ayers <andya@microsoft.com> | 2018-05-18 13:00:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 13:00:29 -0700 |
commit | 3c28c423053f30adedc034c5e2c912bd2adaad10 (patch) | |
tree | a76dabaa781418e90cfe1c3c3690a50e077ba429 /src/jit/gentree.cpp | |
parent | 5bd38293ed527413950ef03bded1a12ca20af5b1 (diff) | |
download | coreclr-3c28c423053f30adedc034c5e2c912bd2adaad10.tar.gz coreclr-3c28c423053f30adedc034c5e2c912bd2adaad10.tar.bz2 coreclr-3c28c423053f30adedc034c5e2c912bd2adaad10.zip |
JIT: treat SIMD types as structs in box optimizations (#18046)
Otherwise we may leave unconsumed GT_OBJs around, which is problematic for the
jit later on.
Fixes #18043.
Diffstat (limited to 'src/jit/gentree.cpp')
-rw-r--r-- | src/jit/gentree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/gentree.cpp b/src/jit/gentree.cpp index 9172916751..c9e3003a5c 100644 --- a/src/jit/gentree.cpp +++ b/src/jit/gentree.cpp @@ -13730,7 +13730,7 @@ GenTree* Compiler::gtTryRemoveBoxUpstreamEffects(GenTree* op, BoxRemovalOptions { hasSrcSideEffect = true; - if (copySrc->gtType == TYP_STRUCT) + if (varTypeIsStruct(copySrc->gtType)) { isStructCopy = true; |