Skip to content

Commit ac4e01e

Browse files
[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.
1 parent f5056c8 commit ac4e01e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ let Predicates = [HasSVEorStreamingSVE] in {
19391939
(DECD_ZPiI ZPR:$op, 31, $imm)>;
19401940
}
19411941

1942-
let Predicates = [HasSVE, UseScalarIncVL], AddedComplexity = 5 in {
1942+
let Predicates = [HasSVEorStreamingSVE, UseScalarIncVL], AddedComplexity = 5 in {
19431943
def : Pat<(add GPR64:$op, (vscale (sve_cnth_imm i32:$imm))),
19441944
(INCH_XPiI GPR64:$op, 31, $imm)>;
19451945
def : Pat<(add GPR64:$op, (vscale (sve_cntw_imm i32:$imm))),

0 commit comments

Comments
 (0)