Skip to content

Commit

Permalink
Fixup: wrap an intrinsic node which is used as a mask op for Conditio…
Browse files Browse the repository at this point in the history
…nalSelect in another ConditionalSelect if required
  • Loading branch information
mikabl-arm committed Jun 14, 2024
1 parent 7827d1d commit 1a2329e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/jit/lowerarmarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,8 @@ GenTree* Lowering::LowerHWIntrinsic(GenTreeHWIntrinsic* node)
{
GenTree* user = use.User();
// Wrap the intrinsic in ConditionalSelect only if it is not already inside another ConditionalSelect
if (!user->OperIsHWIntrinsic() || (user->AsHWIntrinsic()->GetHWIntrinsicId() != NI_Sve_ConditionalSelect))
if (!user->OperIsHWIntrinsic() || (user->AsHWIntrinsic()->GetHWIntrinsicId() != NI_Sve_ConditionalSelect) ||
(HWIntrinsic(user->AsHWIntrinsic()).op1 == node))
{
CorInfoType simdBaseJitType = node->GetSimdBaseJitType();
unsigned simdSize = node->GetSimdSize();
Expand Down

0 comments on commit 1a2329e

Please sign in to comment.