Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/coreclr/jit/lower.cpp
Co-authored-by: SingleAccretion <[email protected]>
  • Loading branch information
EgorBo and SingleAccretion authored Mar 28, 2023
commit d4bb2b3e599d1ae159333557e83e3fa4d985e1f1
8 changes: 2 additions & 6 deletions src/coreclr/jit/lower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7797,12 +7797,8 @@ void Lowering::LowerIntrinsic(GenTreeIntrinsic* node)
// IsKnownConstant is expected to be folded in Importer/Morph/VN+ConstantProp
// This path is just in case if VN+ConstantProp didn't fold them for some reason (or e.g. they were disabled)
node->gtGetOp1()->SetUnusedValue();
LIR::Use use;
if (BlockRange().TryGetUse(node, &use))
{
use.ReplaceWith(comp->gtNewFalse());
}
BlockRange().Remove(node);
node->BashToConst(0);
return;
}
#ifdef TARGET_XARCH
ContainCheckIntrinsic(node->AsOp());
Expand Down