Skip to content

Commit 97f2a88

Browse files
committed
Used wrong predicate in previous patch
1 parent 1a85524 commit 97f2a88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3351,7 +3351,7 @@ let Predicates = [HasSVEorSME] in {
33513351
(EXTRACT_SUBREG (DUP_ZZI_D ZPR:$vec, sve_elm_idx_extdup_d:$index), dsub)>;
33523352

33533353
// Extract element from vector with immediate index that's within the bottom 128-bits.
3354-
let Predicates = [HasNEONandIsStreamingSafe], AddedComplexity = 1 in {
3354+
let Predicates = [HasNEON], AddedComplexity = 1 in {
33553355
def : Pat<(i32 (vector_extract nxv16i8:$vec, VectorIndexB:$index)),
33563356
(UMOVvi8 (v16i8 (EXTRACT_SUBREG ZPR:$vec, zsub)), VectorIndexB:$index)>;
33573357
def : Pat<(i32 (vector_extract nxv8i16:$vec, VectorIndexH:$index)),
@@ -3360,9 +3360,9 @@ let Predicates = [HasSVEorSME] in {
33603360
(UMOVvi32 (v4i32 (EXTRACT_SUBREG ZPR:$vec, zsub)), VectorIndexS:$index)>;
33613361
def : Pat<(i64 (vector_extract nxv2i64:$vec, VectorIndexD:$index)),
33623362
(UMOVvi64 (v2i64 (EXTRACT_SUBREG ZPR:$vec, zsub)), VectorIndexD:$index)>;
3363-
} // End HasNEONandIsStreamingSafe
3363+
} // End HasNEON
33643364

3365-
let Predicates = [HasNEONandIsStreamingSafe] in {
3365+
let Predicates = [HasNEON] in {
33663366
def : Pat<(sext_inreg (vector_extract nxv16i8:$vec, VectorIndexB:$index), i8),
33673367
(SMOVvi8to32 (v16i8 (EXTRACT_SUBREG ZPR:$vec, zsub)), VectorIndexB:$index)>;
33683368
def : Pat<(sext_inreg (anyext (i32 (vector_extract nxv16i8:$vec, VectorIndexB:$index))), i8),
@@ -3375,7 +3375,7 @@ let Predicates = [HasSVEorSME] in {
33753375

33763376
def : Pat<(sext (i32 (vector_extract nxv4i32:$vec, VectorIndexS:$index))),
33773377
(SMOVvi32to64 (v4i32 (EXTRACT_SUBREG ZPR:$vec, zsub)), VectorIndexS:$index)>;
3378-
} // End HasNEONandIsStreamingSafe
3378+
} // End HasNEON
33793379

33803380
// Extract first element from vector.
33813381
let AddedComplexity = 2 in {

0 commit comments

Comments
 (0)