mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
Accept @merykitty's suggestion
This commit is contained in:
parent
e2f8a43ce1
commit
25aa9d7e27
@ -899,7 +899,7 @@ const Type* CmpUNode::Value_cmpu_and_mask(PhaseValues* phase, const Node* andI,
|
||||
rhs_m = rhs->in(1);
|
||||
const TypeInt* rhs_m_type = phase->type(rhs_m)->isa_int();
|
||||
// Exclude any case where m == -1 is possible.
|
||||
if (rhs_m_type != nullptr && (rhs_m_type->_lo > -1 || rhs_m_type->_hi < -1)) {
|
||||
if (rhs_m_type != nullptr && !rhs_m_type->contains(-1)) {
|
||||
if (andI->in(2) == rhs_m || andI->in(1) == rhs_m) {
|
||||
return TypeInt::CC_LT;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user