Skip to content

Commit f55ff01

Browse files
committed
8358534: Bailout in Conv2B::Ideal when type of cmp input is not supported
Reviewed-by: cslucas Backport-of: 704b5990a750719ca927e156553db7982637e590
1 parent 6f05078 commit f55ff01

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
@@ -77,6 +77,11 @@ Node* Conv2BNode::Ideal(PhaseGVN* phase, bool can_reshape) {
7777
assert(false, "Unrecognized comparison for Conv2B: %s", NodeClassNames[in(1)->Opcode()]);
7878
}
7979

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

0 commit comments

Comments
 (0)