Skip to content

Commit

Permalink
Merge pull request dotnet#7905 from pgavlin/VSO279380
Browse files Browse the repository at this point in the history
Fix VSO 279380.
  • Loading branch information
pgavlin authored Oct 31, 2016
2 parents d8b2028 + 318945f commit 9153cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jit/liveness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1969,9 +1969,9 @@ VARSET_VALRET_TP Compiler::fgComputeLifeLIR(VARSET_VALARG_TP lifeArg, BasicBlock
else if (node->OperIsNonPhiLocal() || node->OperIsLocalAddr())
{
bool isDeadStore = fgComputeLifeLocal(life, keepAliveVars, node, node);
if (isDeadStore)
if (isDeadStore && fgTryRemoveDeadLIRStore(blockRange, node, &next))
{
fgTryRemoveDeadLIRStore(blockRange, node, &next);
fgStmtRemoved = true;
}
}
}
Expand Down

0 comments on commit 9153cc2

Please sign in to comment.