[llvm] [SystemZ] Add custom handling of legal vectors with reduce-add. (PR #88495)
Dominik Steenken via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 12 05:50:58 PDT 2024
================
@@ -444,6 +446,11 @@ SystemZTargetLowering::SystemZTargetLowering(const TargetMachine &TM,
setOperationAction(ISD::SRL, VT, Custom);
setOperationAction(ISD::ROTL, VT, Custom);
+ // Add ISD::VECREDUCE_ADD as custom in order to implement
+ // it with VZERO+VSUM
+ if (Subtarget.hasVector()) {
----------------
dominik-steenken wrote:
ok, i will remove the check.
https://github.com/llvm/llvm-project/pull/88495
More information about the llvm-commits
mailing list