Skip to content

Commit 6a3747b

Browse files
Dump more info in JitDump for HWIHNTRINSIC nodes (#115255)
In particular, dump `gtSimdSize` and `gtAuxiliaryJitType`. Example: ``` old: HWINTRINSIC simd64 long InsertVector128 HWINTRINSIC mask long ConvertVectorToMask new: HWINTRINSIC simd64 64 long InsertVector128 HWINTRINSIC mask 64 long ConvertVectorToMask ```
1 parent 4352c7a commit 6a3747b

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/coreclr/jit/gentree.cpp

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13038,14 +13038,18 @@ void Compiler::gtDispTree(GenTree* tree,
1303813038

1303913039
#if defined(FEATURE_HW_INTRINSICS)
1304013040
case GT_HWINTRINSIC:
13041-
if (tree->OperIs(GT_HWINTRINSIC))
13041+
{
13042+
GenTreeHWIntrinsic* node = tree->AsHWIntrinsic();
13043+
printf(" %u", node->GetSimdSize());
13044+
if (node->GetSimdBaseType() != TYP_UNKNOWN)
13045+
{
13046+
printf(" %s", varTypeName(node->GetSimdBaseType()));
13047+
}
13048+
if (node->GetAuxiliaryType() != TYP_UNKNOWN)
1304213049
{
13043-
printf(" %s %s",
13044-
tree->AsHWIntrinsic()->GetSimdBaseType() == TYP_UNKNOWN
13045-
? ""
13046-
: varTypeName(tree->AsHWIntrinsic()->GetSimdBaseType()),
13047-
HWIntrinsicInfo::lookupName(tree->AsHWIntrinsic()->GetHWIntrinsicId()));
13050+
printf(" (aux %s)", varTypeName(node->GetAuxiliaryType()));
1304813051
}
13052+
printf(" %s", HWIntrinsicInfo::lookupName(node->GetHWIntrinsicId()));
1304913053

1305013054
gtDispCommonEndLine(tree);
1305113055

@@ -13058,7 +13062,8 @@ void Compiler::gtDispTree(GenTree* tree,
1305813062
gtDispChild(operand, indentStack, ++index < count ? IIArc : IIArcBottom, nullptr, topOnly);
1305913063
}
1306013064
}
13061-
break;
13065+
}
13066+
break;
1306213067
#endif // defined(FEATURE_HW_INTRINSICS)
1306313068

1306413069
case GT_ARR_ELEM:

0 commit comments

Comments
 (0)