Skip to content

Commit f377332

Browse files
authored
JIT: Avoid comparing regnums in GenTreeHWIntrinsic::Equals (#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 #110316
1 parent 731a96b commit f377332

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/coreclr/jit/gentree.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27624,8 +27624,7 @@ void GenTreeHWIntrinsic::SetHWIntrinsicId(NamedIntrinsic intrinsicId)
2762427624
{
2762527625
return (op1->TypeGet() == op2->TypeGet()) && (op1->GetHWIntrinsicId() == op2->GetHWIntrinsicId()) &&
2762627626
(op1->GetSimdBaseType() == op2->GetSimdBaseType()) && (op1->GetSimdSize() == op2->GetSimdSize()) &&
27627-
(op1->GetAuxiliaryType() == op2->GetAuxiliaryType()) && (op1->GetRegByIndex(1) == op2->GetRegByIndex(1)) &&
27628-
OperandsAreEqual(op1, op2);
27627+
(op1->GetAuxiliaryType() == op2->GetAuxiliaryType()) && OperandsAreEqual(op1, op2);
2762927628
}
2763027629

2763127630
void GenTreeHWIntrinsic::Initialize(NamedIntrinsic intrinsicId)

0 commit comments

Comments
 (0)