projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01f701c
)
Ensure GenTree::isCommutativeHWIntrinsic works on Arm64 (#75818)
author
Tanner Gooding
<tagoo@outlook.com>
Mon, 19 Sep 2022 14:35:34 +0000
(07:35 -0700)
committer
GitHub
<noreply@github.com>
Mon, 19 Sep 2022 14:35:34 +0000
(07:35 -0700)
src/coreclr/jit/gentree.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/jit/gentree.cpp
b/src/coreclr/jit/gentree.cpp
index
288ab6a
..
5ba2239
100644
(file)
--- a/
src/coreclr/jit/gentree.cpp
+++ b/
src/coreclr/jit/gentree.cpp
@@
-18665,7
+18665,6
@@
bool GenTree::isCommutativeHWIntrinsic() const
{
assert(gtOper == GT_HWINTRINSIC);
-#ifdef TARGET_XARCH
const GenTreeHWIntrinsic* node = AsHWIntrinsic();
NamedIntrinsic id = node->GetHWIntrinsicId();
@@
-18678,6
+18677,7
@@
bool GenTree::isCommutativeHWIntrinsic() const
{
switch (id)
{
+#ifdef TARGET_XARCH
case NI_SSE_Max:
case NI_SSE_Min:
{
@@
-18695,6
+18695,7
@@
bool GenTree::isCommutativeHWIntrinsic() const
{
return false;
}
+#endif // TARGET_XARCH
default:
{
@@
-18702,7
+18703,6
@@
bool GenTree::isCommutativeHWIntrinsic() const
}
}
}
-#endif // TARGET_XARCH
return false;
}