Skip to content

Commit 59cc79b

Browse files
committed
Address comments
1 parent 8c870e3 commit 59cc79b

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,13 +1831,11 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
18311831
}
18321832

18331833
// Handle partial reduction operations
1834-
if (EnablePartialReduceNodes) {
1835-
if (Subtarget->isSVEorStreamingSVEAvailable()) {
1836-
// Mark known legal pairs as 'Legal' (these will expand to UDOT or SDOT).
1837-
// Other pairs will default to 'Expand'.
1838-
setPartialReduceMLAAction(MVT::nxv2i64, MVT::nxv8i16, Legal);
1839-
setPartialReduceMLAAction(MVT::nxv4i32, MVT::nxv16i8, Legal);
1840-
}
1834+
if (EnablePartialReduceNodes && Subtarget->isSVEorStreamingSVEAvailable()) {
1835+
// Mark known legal pairs as 'Legal' (these will expand to UDOT or SDOT).
1836+
// Other pairs will default to 'Expand'.
1837+
setPartialReduceMLAAction(MVT::nxv2i64, MVT::nxv8i16, Legal);
1838+
setPartialReduceMLAAction(MVT::nxv4i32, MVT::nxv16i8, Legal);
18411839
}
18421840

18431841
// Handle operations that are only available in non-streaming SVE mode.

llvm/lib/Target/AArch64/AArch64InstrInfo.td

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ def HasFuseAES : Predicate<"Subtarget->hasFuseAES()">,
143143
"fuse-aes">;
144144
def HasSVE : Predicate<"Subtarget->isSVEAvailable()">,
145145
AssemblerPredicateWithAll<(all_of FeatureSVE), "sve">;
146-
def HasSVEorStreamingSVE
147-
: Predicate<"Subtarget->isSVEorStreamingSVEAvailable()">,
148-
AssemblerPredicateWithAll<(all_of FeatureSVE), "sve">;
149146
def HasSVEB16B16 : Predicate<"Subtarget->isSVEorStreamingSVEAvailable() && Subtarget->hasSVEB16B16()">,
150147
AssemblerPredicateWithAll<(all_of FeatureSVEB16B16), "sve-b16b16">;
151148
def HasSVE2 : Predicate<"Subtarget->isSVEAvailable() && Subtarget->hasSVE2()">,

llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ let Predicates = [HasSVE_or_SME] in {
655655
defm SDOT_ZZZ : sve_intx_dot<0b0, "sdot", AArch64sdot>;
656656
defm UDOT_ZZZ : sve_intx_dot<0b1, "udot", AArch64udot>;
657657

658-
let Predicates = [HasSVEorStreamingSVE] in {
658+
let Predicates = [HasSVE_or_SME] in {
659659
def : Pat<(nxv4i32 (partial_reduce_umla nxv4i32:$Acc, nxv16i8:$MulLHS, nxv16i8:$MulRHS)),
660660
(UDOT_ZZZ_S $Acc, $MulLHS, $MulRHS)>;
661661
def : Pat<(nxv4i32 (partial_reduce_smla nxv4i32:$Acc, nxv16i8:$MulLHS, nxv16i8:$MulRHS)),
@@ -664,7 +664,7 @@ let Predicates = [HasSVE_or_SME] in {
664664
(UDOT_ZZZ_D $Acc, $MulLHS, $MulRHS)>;
665665
def : Pat<(nxv2i64 (partial_reduce_smla nxv2i64:$Acc, nxv8i16:$MulLHS, nxv8i16:$MulRHS)),
666666
(SDOT_ZZZ_D $Acc, $MulLHS, $MulRHS)>;
667-
} // End HasSVEorStreamingSVE
667+
} // End HasSVE_or_SME
668668

669669
defm SDOT_ZZZI : sve_intx_dot_by_indexed_elem<0b0, "sdot", int_aarch64_sve_sdot_lane>;
670670
defm UDOT_ZZZI : sve_intx_dot_by_indexed_elem<0b1, "udot", int_aarch64_sve_udot_lane>;

0 commit comments

Comments
 (0)