[llvm] [AArch64] Add DAG combine to widen v3i8/v4i8 VECTOR_MATCH needles (PR #218972)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 05:26:19 PDT 2026
================
@@ -1656,6 +1656,8 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
for (MVT VT : {MVT::v16i1, MVT::v8i1, MVT::v16i8, MVT::v8i8})
setOperationAction(ISD::VECTOR_MATCH, VT, Custom);
+
+ setTargetDAGCombine(ISD::VECTOR_MATCH);
----------------
MacDue wrote:
Okay, but the loop above is specifically setting the action for the result type. Maybe the action lookup can be changed to only inspect the needle type (as the result is any a legal predicate, so is not worth checking). Otherwise, we'd need another table (like we have for partial reductions).
https://github.com/llvm/llvm-project/pull/218972
More information about the llvm-commits
mailing list