Skip to content

Commit 71f8fb6

Browse files
authored
Fix runtime lookup expansion in Tier0 (#101153)
1 parent a2b1690 commit 71f8fb6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/coreclr/jit/helperexpansion.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,8 @@ bool Compiler::fgExpandRuntimeLookupsForCall(BasicBlock** pBlock, Statement* stm
307307
// null-check basic block
308308
GenTree* fastPathValue = gtNewIndir(TYP_I_IMPL, gtCloneExpr(slotPtrTree), GTF_IND_NONFAULTING);
309309
// Save dictionary slot to a local (to be used by fast path)
310-
GenTree* fastPathValueClone =
311-
opts.OptimizationEnabled() ? fgMakeMultiUse(&fastPathValue) : gtCloneExpr(fastPathValue);
312-
GenTree* nullcheckOp = gtNewOperNode(GT_EQ, TYP_INT, fastPathValue, gtNewIconNode(0, TYP_I_IMPL));
310+
GenTree* fastPathValueClone = fgMakeMultiUse(&fastPathValue);
311+
GenTree* nullcheckOp = gtNewOperNode(GT_EQ, TYP_INT, fastPathValue, gtNewIconNode(0, TYP_I_IMPL));
313312
nullcheckOp->gtFlags |= GTF_RELOP_JMP_USED;
314313

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

0 commit comments

Comments
 (0)