Skip to content

Commit 704b599

Browse files
author
Cesar Soares Lucas
committed
8358534: Bailout in Conv2B::Ideal when type of cmp input is not supported
Reviewed-by: shade
1 parent e235b61 commit 704b599

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/hotspot/share/opto/convertnode.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ Node* Conv2BNode::Ideal(PhaseGVN* phase, bool can_reshape) {
7979
assert(false, "Unrecognized comparison for Conv2B: %s", NodeClassNames[in(1)->Opcode()]);
8080
}
8181

82+
// Skip the transformation if input is unexpected.
83+
if (cmp == nullptr) {
84+
return nullptr;
85+
}
86+
8287
// Replace Conv2B with the cmove
8388
Node* bol = phase->transform(new BoolNode(cmp, BoolTest::eq));
8489
return new CMoveINode(bol, phase->intcon(1), phase->intcon(0), TypeInt::BOOL);

0 commit comments

Comments
 (0)