未验证 提交 2d03dc4e 编写于 作者: E Egor Bogatov 提交者: GitHub

Improve codegen in impStringEqualsOrStartsWith (#90288)

上级 df5f3e6e
......@@ -616,10 +616,8 @@ GenTree* Compiler::impStringEqualsOrStartsWith(bool startsWith, CORINFO_SIG_INFO
op2 = impStackTop(0).val;
}
if (!(op1->OperIs(GT_CNS_STR) ^ op2->OperIs(GT_CNS_STR)))
if (!op1->OperIs(GT_CNS_STR) && !op2->OperIs(GT_CNS_STR))
{
// either op1 or op2 has to be CNS_STR, but not both - that case is optimized
// just fine as is.
return nullptr;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册