Skip to content

Commit 48e7388

Browse files
Automatic merge of master into galahad
2 parents 8f91731 + 8b5c36f commit 48e7388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/calc/FloatLessThanNode.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -96,7 +96,7 @@ public LogicNode canonical(ConstantReflectionProvider constantReflection, MetaAc
9696
return result;
9797
}
9898
if (GraphUtil.unproxify(forX) == GraphUtil.unproxify(forY)) {
99-
if (!unorderedIsTrue || (((FloatStamp) forX.stamp(view)).isNonNaN() && ((FloatStamp) forY.stamp(view)).isNonNaN())) {
99+
if (!unorderedIsTrue || (forX.stamp(view) instanceof FloatStamp xStamp && xStamp.isNonNaN() && forY.stamp(view) instanceof FloatStamp yStamp && yStamp.isNonNaN())) {
100100
/*
101101
* If x is NaN and an unordered result is false, x < x is false. Otherwise, if x
102102
* cannot be NaN, x < x is false too.

0 commit comments

Comments
 (0)