From 5d4e4320a9196e4ab8ccc068e7e32222f43c7a59 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Mon, 19 Sep 2022 07:35:34 -0700 Subject: [PATCH] Ensure GenTree::isCommutativeHWIntrinsic works on Arm64 (#75818) --- src/coreclr/jit/gentree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/jit/gentree.cpp b/src/coreclr/jit/gentree.cpp index 288ab6a3b97..5ba22397689 100644 --- 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; } -- GitLab