Skip to content

Commit

Permalink
Remove useless sub
Browse files Browse the repository at this point in the history
  • Loading branch information
hez2010 committed Nov 2, 2024
1 parent fcf6ed9 commit 1f2f4ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,7 @@ bool Compiler::impGetLclVal(GenTreeLclVar* tree, GenTree** val)
comp->impLclVals.Lookup((static_cast<UINT64>(comp->compCurBB->bbNum) << 32 | tree->GetLclNum()), &gtVal) &&
gtVal->TypeIs(tree->TypeGet()))
{
if (gtVal->OperIsConst() || gtVal->OperIs(GT_FTN_ADDR) ||
(gtVal->IsCall() && gtIsTypeHandleToRuntimeTypeHelper(gtVal->AsCall())))
if (gtVal->OperIs(GT_FTN_ADDR) || (gtVal->IsCall() && gtIsTypeHandleToRuntimeTypeHelper(gtVal->AsCall())))
{
JITDUMP("Use substitution for V%02u:\n", tree->GetLclNum());
DISPTREE(gtVal);
Expand Down

0 comments on commit 1f2f4ad

Please sign in to comment.