未验证 提交 5d4e4320 编写于 作者: T Tanner Gooding 提交者: GitHub

Ensure GenTree::isCommutativeHWIntrinsic works on Arm64 (#75818)

上级 01f701c9
...@@ -18665,7 +18665,6 @@ bool GenTree::isCommutativeHWIntrinsic() const ...@@ -18665,7 +18665,6 @@ bool GenTree::isCommutativeHWIntrinsic() const
{ {
assert(gtOper == GT_HWINTRINSIC); assert(gtOper == GT_HWINTRINSIC);
#ifdef TARGET_XARCH
const GenTreeHWIntrinsic* node = AsHWIntrinsic(); const GenTreeHWIntrinsic* node = AsHWIntrinsic();
NamedIntrinsic id = node->GetHWIntrinsicId(); NamedIntrinsic id = node->GetHWIntrinsicId();
...@@ -18678,6 +18677,7 @@ bool GenTree::isCommutativeHWIntrinsic() const ...@@ -18678,6 +18677,7 @@ bool GenTree::isCommutativeHWIntrinsic() const
{ {
switch (id) switch (id)
{ {
#ifdef TARGET_XARCH
case NI_SSE_Max: case NI_SSE_Max:
case NI_SSE_Min: case NI_SSE_Min:
{ {
...@@ -18695,6 +18695,7 @@ bool GenTree::isCommutativeHWIntrinsic() const ...@@ -18695,6 +18695,7 @@ bool GenTree::isCommutativeHWIntrinsic() const
{ {
return false; return false;
} }
#endif // TARGET_XARCH
default: default:
{ {
...@@ -18702,7 +18703,6 @@ bool GenTree::isCommutativeHWIntrinsic() const ...@@ -18702,7 +18703,6 @@ bool GenTree::isCommutativeHWIntrinsic() const
} }
} }
} }
#endif // TARGET_XARCH
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册