[PATCH] D94444: [RFC][Scalable] Add scalable shuffle intrinsic to extract evens from a pair of vectors
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 12 09:07:46 PST 2021
sdesmalen added a comment.
In D94444#2492855 <https://reviews.llvm.org/D94444#2492855>, @cameron.mcinally wrote:
> I like that too. I also like David's suggestion about deinterleave.even. I don't really have a strong opinion on either though. Does anyone feel strongly either way?
I quite like Dave's suggestion for deinterleave.even/odd and interleave.lo/hi, because now they are related (antonyms) and the names are still intuitive.
>>> How do we feel about the ISDNode name: ISD::EXTRACT_EVENS_VECTOR? It could be argued that this set of nodes should have SCALABLE in their names, unless we plan to also allow fixed width arguments as well. Currently the fixed width intrinsics are canonicalized to the existing shuffle vector implementation, so they never reach this ISDNode.
>>
>> I would favour not to add SCALABLE to that name, because there is nothing limiting these nodes from being used for fixed-width vectors.
>
> Ok, that's fair. Right now I have an assert in ISelLowering to ensure only scalable types. That could really be removed though, since the UZP1 lowering would also work for fixed types. It might take a little work to clean up, but I don't foresee any problems.
It's probably fine either with/without the assert, since there is currently no way to test the fixed-width case.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94444/new/
https://reviews.llvm.org/D94444
More information about the llvm-commits
mailing list