From 25aa9d7e27a74cf6ed917af2d328f5880fe84de5 Mon Sep 17 00:00:00 2001 From: Francisco Ferrari Bihurriet Date: Thu, 14 Aug 2025 20:26:00 +0200 Subject: [PATCH] Accept @merykitty's suggestion --- src/hotspot/share/opto/subnode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/opto/subnode.cpp b/src/hotspot/share/opto/subnode.cpp index 537d448c9fc..4c8fc5b2e5b 100644 --- a/src/hotspot/share/opto/subnode.cpp +++ b/src/hotspot/share/opto/subnode.cpp @@ -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; }