mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8332883: Some simple cleanup in vectornode.cpp
Reviewed-by: kvn
This commit is contained in:
parent
b5e1615c00
commit
2f2cf38bb5
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user