We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43c5724 commit 3db4522Copy full SHA for 3db4522
src/coreclr/jit/fginline.cpp
@@ -1608,7 +1608,8 @@ Statement* Compiler::fgInlinePrependStatements(InlineInfo* inlineInfo)
1608
GenTree* op2 = argNode->AsOp()->gtOp2;
1609
if (op1->IsCall() &&
1610
((op1->AsCall()->gtCallMoreFlags & GTF_CALL_M_HELPER_SPECIAL_DCE) != 0) &&
1611
- (op2->OperIs(GT_IND, GT_FIELD)) && ((op2->gtFlags & GTF_EXCEPT) == 0))
+ op2->OperIs(GT_IND) && op2->gtGetOp1()->IsIconHandle() &&
1612
+ ((op2->gtFlags & GTF_EXCEPT) == 0))
1613
{
1614
JITDUMP("\nPerforming special dce on unused arg [%06u]:"
1615
" actual arg [%06u] helper call [%06u]\n",
0 commit comments