Skip to content

Commit

Permalink
Fix runtime lookup expansion in Tier0 (#101153)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed May 1, 2024
1 parent a2b1690 commit 71f8fb6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/coreclr/jit/helperexpansion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,8 @@ bool Compiler::fgExpandRuntimeLookupsForCall(BasicBlock** pBlock, Statement* stm
// null-check basic block
GenTree* fastPathValue = gtNewIndir(TYP_I_IMPL, gtCloneExpr(slotPtrTree), GTF_IND_NONFAULTING);
// Save dictionary slot to a local (to be used by fast path)
GenTree* fastPathValueClone =
opts.OptimizationEnabled() ? fgMakeMultiUse(&fastPathValue) : gtCloneExpr(fastPathValue);
GenTree* nullcheckOp = gtNewOperNode(GT_EQ, TYP_INT, fastPathValue, gtNewIconNode(0, TYP_I_IMPL));
GenTree* fastPathValueClone = fgMakeMultiUse(&fastPathValue);
GenTree* nullcheckOp = gtNewOperNode(GT_EQ, TYP_INT, fastPathValue, gtNewIconNode(0, TYP_I_IMPL));
nullcheckOp->gtFlags |= GTF_RELOP_JMP_USED;

// nullcheckBb conditionally jumps to fallbackBb, but we need to initialize fallbackBb last
Expand Down

0 comments on commit 71f8fb6

Please sign in to comment.