1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-11 02:13:38 +09:00

Share more of the TYP_MASK handling and support rewriting TYP_MASK operands in rationalization (#103288)

* Share more of the TYP_MASK handling and support rewriting TYP_MASK operands in rationalization

* Ensure we pass in TYP_MASK, not the simdType

* Apply formatting patch

* Fix copy/paste error, pass in clsHnd for the argument

* Ensure that we normalize sigType before inserting the CvtMaskToVectorNode

* Ensure that we get the vector node on Arm64 (ConvertVectorToMask has 2 ops)
This commit is contained in:
Tanner Gooding 2024-06-12 00:01:54 -07:00 committed by GitHub
parent 40787436cb
commit 96be3e2e81
Signed by: github
GPG key ID: B5690EEEBB952194
9 changed files with 339 additions and 329 deletions

View file

@ -12187,24 +12187,13 @@ void Compiler::fgValueNumberHWIntrinsic(GenTreeHWIntrinsic* tree)
// Some intrinsics should always be unique
bool makeUnique = false;
#if defined(TARGET_XARCH)
switch (intrinsicId)
if (tree->OperIsConvertMaskToVector())
{
case NI_EVEX_ConvertMaskToVector:
{
// We want to ensure that we get a TYP_MASK local to
// ensure the relevant optimizations can kick in
// We want to ensure that we get a TYP_MASK local to
// ensure the relevant optimizations can kick in
makeUnique = true;
break;
}
default:
{
break;
}
makeUnique = true;
}
#endif // TARGET_XARCH
if (makeUnique)
{