summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2019-06-13 10:28:58 -0700
committerGitHub <noreply@github.com>2019-06-13 10:28:58 -0700
commitf1ca8ad423a244f8f429fe715cdd3c6228302e32 (patch)
tree297f70f52e77c80cc072bec8d919b66929152e36
parente2b3130f4d0c9f1b759a769f4d344ee72a55b771 (diff)
downloadcoreclr-f1ca8ad423a244f8f429fe715cdd3c6228302e32.tar.gz
coreclr-f1ca8ad423a244f8f429fe715cdd3c6228302e32.tar.bz2
coreclr-f1ca8ad423a244f8f429fe715cdd3c6228302e32.zip
Don't try to fold constants for GT_HWIntrinsic (#25139)
Fix #25133
-rw-r--r--src/jit/gentree.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jit/gentree.cpp b/src/jit/gentree.cpp
index a5c718a181..3a0629edaf 100644
--- a/src/jit/gentree.cpp
+++ b/src/jit/gentree.cpp
@@ -13027,6 +13027,12 @@ GenTree* Compiler::gtFoldExprConst(GenTree* tree)
return tree;
}
#endif // FEATURE_SIMD
+#ifdef FEATURE_HW_INTRINSICS
+ if (tree->OperGet() == GT_HWIntrinsic)
+ {
+ return tree;
+ }
+#endif
if (tree->gtOper == GT_ALLOCOBJ)
{