Skip to content

Commit

Permalink
Remove the unused node
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak committed Jan 31, 2023
1 parent cdea757 commit 32a8c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/jit/lower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7344,8 +7344,8 @@ void Lowering::TransformUnusedIndirection(GenTreeIndir* ind, Compiler* comp, Bas
if (!comp->fgAddrCouldBeNull(addr))
{
addr->SetUnusedValue();
ind->gtBashToNOP();
JITDUMP("bash an unused indir [%06u] to NOP.\n", comp->dspTreeID(ind));
LIR::AsRange(block).Remove(ind);
JITDUMP("Removing unused indir [%06u].\n", comp->dspTreeID(ind));
return;
}

Expand Down

0 comments on commit 32a8c9c

Please sign in to comment.