[PATCH] D117097: [AArch64] Basic demand elements for some intrinsics
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 13 00:41:05 PST 2022
dmgreen added a comment.
> It looks like what your patch is doing is just adding an AArch64 version of simplifyDemandedVectorEltsIntrinsic, that allows us to potentially simplify the input operand to the intrinsic based on the demanded elements. So, for example, if we know that we are only going to use the first N elements of the intrinsic result we can use that information to simplify the intrinsic operand too.
Yep. I had written "single element" where I meant "single source". I can see that being confusing, but you have the right idea.
We could do it for binops too, but I've not looked at those here, just truncates with a single input.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117097/new/
https://reviews.llvm.org/D117097
More information about the llvm-commits
mailing list