[PATCH] D88742: [AArch64] Identify SAD pattern for v16i8 type
Vinay Madhusudan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 6 06:55:21 PDT 2020
mivnay added a comment.
In D88742#2312075 <https://reviews.llvm.org/D88742#2312075>, @dmgreen wrote:
> So this converts `v16i32 abs(sub(zext(v16i8), zext(v16i8))))` to `v16i32 zext(abd(v16i8, v16i8))`? And doesn't start with a trunk? That sounds like it should work OK.
Yes.
> Can you add other types and sign extends? And more tests. And a AArch64ISD node (they are not very complex to add :) )
Few patterns already exists in .td files for uabdl, etc. I tried to add the ISD node for UABD (posted it in https://reviews.llvm.org/D88897) but there are unintended consequences (ISel is generating different patterns). Can I take a look at it later (when other pending patches are done)? About the sign extend variants, I am not sure whether it is legal to do this transformation.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88742/new/
https://reviews.llvm.org/D88742
More information about the llvm-commits
mailing list