8234392: C2: Extend Matcher::match_rule_supported_vector() with element type information

Reviewed-by: vlivanov, sviswanathan, kvn, jrose
This commit is contained in:
Jatin Bhateja 2019-12-12 13:09:16 +03:00
parent 47ee85a247
commit 31e075b019
8 changed files with 122 additions and 105 deletions

View file

@ -238,7 +238,7 @@ bool VectorNode::implemented(int opc, uint vlen, BasicType bt) {
(vlen > 1) && is_power_of_2(vlen) &&
Matcher::vector_size_supported(bt, vlen)) {
int vopc = VectorNode::opcode(opc, bt);
return vopc > 0 && Matcher::match_rule_supported_vector(vopc, vlen);
return vopc > 0 && Matcher::match_rule_supported_vector(vopc, vlen, bt);
}
return false;
}