Skip to content

Commit 791109e

Browse files
authored
Use 'compOpportunisticallyDependsOn' to determine if we can use ArmBase_Arm64_MultiplyLongAdd/MultiplyLongSub/MultiplyLongNeg intrinsics in lowering (#95877)
1 parent 0fae364 commit 791109e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coreclr/jit/lowerarmarch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,7 +2774,7 @@ GenTree* Lowering::TryLowerAddSubToMulLongOp(GenTreeOp* op)
27742774
if (!comp->opts.OptimizationEnabled())
27752775
return nullptr;
27762776

2777-
if (!JitConfig.EnableHWIntrinsic())
2777+
if (!comp->compOpportunisticallyDependsOn(InstructionSet_ArmBase_Arm64))
27782778
return nullptr;
27792779

27802780
if (op->isContained())
@@ -2880,7 +2880,7 @@ GenTree* Lowering::TryLowerNegToMulLongOp(GenTreeOp* op)
28802880
if (!comp->opts.OptimizationEnabled())
28812881
return nullptr;
28822882

2883-
if (!JitConfig.EnableHWIntrinsic())
2883+
if (!comp->compOpportunisticallyDependsOn(InstructionSet_ArmBase_Arm64))
28842884
return nullptr;
28852885

28862886
if (op->isContained())

0 commit comments

Comments
 (0)