Skip to content

Commit dd5b215

Browse files
committed
remove unrelated change
1 parent 735dcde commit dd5b215

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/coreclr/jit/assertionprop.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4571,13 +4571,6 @@ GenTree* Compiler::optAssertionPropGlobal_RelOp(ASSERT_VALARG_TP assertions,
45714571
return nullptr;
45724572
}
45734573

4574-
// Fold "x ==/!= null" with help of fgAddrCouldBeNull
4575-
if (varTypeIsGC(op1) && op2->IsIntegralConst(0) && !fgAddrCouldBeNull(op1))
4576-
{
4577-
newTree = tree->OperIs(GT_EQ) ? gtNewIconNode(0) : gtNewIconNode(1);
4578-
return optAssertionProp_Update(newTree, tree, stmt);
4579-
}
4580-
45814574
// See if we have "PHI ==/!= null" tree. If so, we iterate over all PHI's arguments,
45824575
// and if all of them are known to be non-null, we can bash the comparison to true/false.
45834576
if (op2->IsIntegralConst(0) && op1->TypeIs(TYP_REF))

0 commit comments

Comments
 (0)