Skip to content

Commit 74e61b7

Browse files
committed
Add HasSVE_or_SME check
1 parent 8f6dc44 commit 74e61b7

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
@@ -2994,7 +2994,7 @@ let Predicates = [HasSVE_or_SME] in {
29942994
defm : unpred_loadstore_bitcast<nxv2f64>;
29952995

29962996
// Allow using LDR/STR to avoid the predicate dependence.
2997-
let Predicates = [IsLE, AllowMisalignedMemAccesses] in
2997+
let Predicates = [HasSVE_or_SME, IsLE, AllowMisalignedMemAccesses] in
29982998
foreach Ty = [ nxv16i8, nxv8i16, nxv4i32, nxv2i64, nxv8f16, nxv4f32, nxv2f64, nxv8bf16 ] in {
29992999
let AddedComplexity = 2 in {
30003000
def : Pat<(Ty (load (am_sve_indexed_s9 GPR64sp:$base, simm9:$offset))),

0 commit comments

Comments
 (0)