8332883: Some simple cleanup in vectornode.cpp

Reviewed-by: kvn
This commit is contained in:
Hamlin Li 2024-05-28 07:51:49 +00:00
parent b5e1615c00
commit 2f2cf38bb5

View File

@ -415,11 +415,7 @@ bool VectorNode::implemented(int opc, uint vlen, BasicType bt) {
}
bool VectorNode::is_type_transition_short_to_int(Node* n) {
switch (n->Opcode()) {
case Op_MulAddS2I:
return true;
}
return false;
return n->Opcode() == Op_MulAddS2I;
}
bool VectorNode::is_type_transition_to_int(Node* n) {
@ -427,17 +423,11 @@ bool VectorNode::is_type_transition_to_int(Node* n) {
}
bool VectorNode::is_muladds2i(const Node* n) {
if (n->Opcode() == Op_MulAddS2I) {
return true;
}
return false;
return n->Opcode() == Op_MulAddS2I;
}
bool VectorNode::is_roundopD(Node* n) {
if (n->Opcode() == Op_RoundDoubleMode) {
return true;
}
return false;
return n->Opcode() == Op_RoundDoubleMode;
}
bool VectorNode::is_vector_rotate_supported(int vopc, uint vlen, BasicType bt) {
@ -584,10 +574,7 @@ bool VectorNode::is_rotate_opcode(int opc) {
}
bool VectorNode::is_scalar_rotate(Node* n) {
if (is_rotate_opcode(n->Opcode())) {
return true;
}
return false;
return is_rotate_opcode(n->Opcode());
}
bool VectorNode::is_vshift_cnt_opcode(int opc) {