Skip to content

Commit a5e8eb6

Browse files
dafedafechhagedorn
andauthored
Update src/hotspot/share/opto/addnode.cpp
Co-authored-by: Christian Hagedorn <[email protected]>
1 parent 57f1585 commit a5e8eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/opto/addnode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ static Node* fold_subI_no_underflow_pattern(Node* n, PhaseGVN* phase) {
15981598
Node* x = add2->in(1);
15991599
Node* con2 = add2->in(2);
16001600
if (is_sub_con(con2)) {
1601-
// The graph could be in a dirty state. So, we need to check for the type of x
1601+
// The graph could be dying (i.e. x is top) in which case type(x) is not a long.
16021602
const TypeLong* x_long = phase->type(x)->isa_long();
16031603
// Collapsed graph not equivalent if potential over/underflow -> bailing out (*)
16041604
if (x_long == nullptr || can_overflow(x_long, con1->get_long() + con2->get_long())) {

0 commit comments

Comments
 (0)