Skip to content
Merged
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
7 changes: 5 additions & 2 deletions src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7827,8 +7827,11 @@ void Compiler::impImportBlockCode(BasicBlock* block)
op1->gtFlags |= GTF_RELOP_NAN_UN | GTF_UNSIGNED;
}

// See if we can optimize type comparisons
op1 = gtFoldTypeCompare(op1);
// See if we can optimize type comparisons, IsCall() checks for better TP
if (op1->gtGetOp1()->IsCall() && op1->gtGetOp2()->IsCall())
{
op1 = gtFoldTypeCompare(op1);
}

// Fold result, if possible.
op1 = gtFoldExpr(op1);
Expand Down