[SVE][CodeGen] Fix predicate for add/sub + element count patterns

The patterns added in D111441 should use the HasSVEorStreamingSVE
predicate. This changes one incorrect use of HasSVE with the new
patterns.
This commit is contained in:
Kerry McLaughlin 2021-10-18 13:32:41 +01:00
parent f5056c8c16
commit ac4e01ea0e

View File

@ -1939,7 +1939,7 @@ let Predicates = [HasSVEorStreamingSVE] in {
(DECD_ZPiI ZPR:$op, 31, $imm)>;
}
let Predicates = [HasSVE, UseScalarIncVL], AddedComplexity = 5 in {
let Predicates = [HasSVEorStreamingSVE, UseScalarIncVL], AddedComplexity = 5 in {
def : Pat<(add GPR64:$op, (vscale (sve_cnth_imm i32:$imm))),
(INCH_XPiI GPR64:$op, 31, $imm)>;
def : Pat<(add GPR64:$op, (vscale (sve_cntw_imm i32:$imm))),