diff --git a/src/hotspot/share/opto/vectornode.cpp b/src/hotspot/share/opto/vectornode.cpp index 5489a13b871..600795bbc73 100644 --- a/src/hotspot/share/opto/vectornode.cpp +++ b/src/hotspot/share/opto/vectornode.cpp @@ -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) {