Skip to content

Commit

Permalink
Revert "Remove importer changes"
Browse files Browse the repository at this point in the history
This reverts commit b5502a6.
  • Loading branch information
a74nh committed Mar 14, 2024
1 parent 39c02d0 commit d8dea0e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6434,6 +6434,17 @@ void Compiler::impImportBlockCode(BasicBlock* block)
impSpillSideEffects(false, CHECK_SPILL_ALL DEBUGARG("Spill before store to pinned local"));
}

#if defined(TARGET_ARM64) && defined(FEATURE_MASKED_HW_INTRINSICS)
// Masks which as stored to locals as a vector can remove the conversion step as type mask is
// the typical consumption.
if (op1->OperIsHWIntrinsic() && op1->AsHWIntrinsic()->OperIsConvertMaskToVector())
{
op1 = op1->AsHWIntrinsic()->Op(1);
lvaTable[lclNum].lvType = TYP_MASK;
lclTyp = lvaGetActualType(lclNum);
}
#endif // TARGET_ARM64 && FEATURE_MASKED_HW_INTRINSICS

op1 = gtNewStoreLclVarNode(lclNum, op1);

// TODO-ASG: delete this zero-diff quirk. Requires some forward substitution work.
Expand Down

0 comments on commit d8dea0e

Please sign in to comment.