8358534: Bailout in Conv2B::Ideal when type of cmp input is not supported
Reviewed-by: shade
This commit is contained in:
parent
e235b61a8b
commit
704b5990a7
@ -79,6 +79,11 @@ Node* Conv2BNode::Ideal(PhaseGVN* phase, bool can_reshape) {
|
||||
assert(false, "Unrecognized comparison for Conv2B: %s", NodeClassNames[in(1)->Opcode()]);
|
||||
}
|
||||
|
||||
// Skip the transformation if input is unexpected.
|
||||
if (cmp == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Replace Conv2B with the cmove
|
||||
Node* bol = phase->transform(new BoolNode(cmp, BoolTest::eq));
|
||||
return new CMoveINode(bol, phase->intcon(1), phase->intcon(0), TypeInt::BOOL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user