Skip to content

Commit

Permalink
Ensure that we get the vector node on Arm64 (ConvertVectorToMask has …
Browse files Browse the repository at this point in the history
…2 ops)
  • Loading branch information
tannergooding committed Jun 12, 2024
1 parent 84657f9 commit 151cc1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/coreclr/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10800,7 +10800,13 @@ GenTree* Compiler::fgOptimizeHWIntrinsic(GenTreeHWIntrinsic* node)
break;
}

#if defined(TARGET_XARCH)4
GenTree* vectorNode = cvtOp->Op(1);
#elif defined(TARGET_ARM64)
GenTree* vectorNode = cvtOp->Op(2);
#else
#error Unsupported platform
#endif // !TARGET_XARCH && !TARGET_ARM64

DEBUG_DESTROY_NODE(op, node);
INDEBUG(vectorNode->gtDebugFlags |= GTF_DEBUG_NODE_MORPHED);
Expand Down

0 comments on commit 151cc1a

Please sign in to comment.