Skip to content

Commit

Permalink
JIT: Avoid comparing regnums in GenTreeHWIntrinsic::Equals (dotnet#…
Browse files Browse the repository at this point in the history
…110535)

Register numbers are not part of the syntax of JIT IR, so it does not
need to be compared for the purpose of this function. At the same time
we can hit asserts for nodes that aren't multi-reg nodes.

Fix dotnet#110316
  • Loading branch information
jakobbotsch authored Dec 10, 2024
1 parent 731a96b commit f377332
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/coreclr/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27624,8 +27624,7 @@ void GenTreeHWIntrinsic::SetHWIntrinsicId(NamedIntrinsic intrinsicId)
{
return (op1->TypeGet() == op2->TypeGet()) && (op1->GetHWIntrinsicId() == op2->GetHWIntrinsicId()) &&
(op1->GetSimdBaseType() == op2->GetSimdBaseType()) && (op1->GetSimdSize() == op2->GetSimdSize()) &&
(op1->GetAuxiliaryType() == op2->GetAuxiliaryType()) && (op1->GetRegByIndex(1) == op2->GetRegByIndex(1)) &&
OperandsAreEqual(op1, op2);
(op1->GetAuxiliaryType() == op2->GetAuxiliaryType()) && OperandsAreEqual(op1, op2);
}

void GenTreeHWIntrinsic::Initialize(NamedIntrinsic intrinsicId)
Expand Down

0 comments on commit f377332

Please sign in to comment.