In GenTree::GetRegSpillFlagByIdx the following code exists:
|
#if defined(TARGET_XARCH) && defined(FEATURE_HW_INTRINSICS) |
|
if (OperIs(GT_HWINTRINSIC)) |
|
{ |
|
// At this time, the only multi-reg HW intrinsics all return the type of their |
|
// arguments. If this changes, we will need a way to record or determine this. |
|
assert(TypeGet() == TYP_STRUCT); |
|
return gtGetOp1()->TypeGet(); |
|
} |
|
#endif |
This makes no sense, as the function is supposed to return a GTF_SPILL / GTF_SPILLED mask, but in this case it is returning a type, instead.
This code is an exact copy of code in GenTree::GetRegTypeByIndex, immediately above.
So what should it return in this case?
@tannergooding @echesakovMSFT @dotnet/jit-contrib
In
GenTree::GetRegSpillFlagByIdxthe following code exists:runtime/src/coreclr/jit/gentree.h
Lines 7646 to 7654 in d3a72e5
This makes no sense, as the function is supposed to return a GTF_SPILL / GTF_SPILLED mask, but in this case it is returning a type, instead.
This code is an exact copy of code in
GenTree::GetRegTypeByIndex, immediately above.So what should it return in this case?
@tannergooding @echesakovMSFT @dotnet/jit-contrib