[PATCH] D142782: [AMDGPU] Add basic support for extended i8 perm matching
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 20 10:54:06 PDT 2023
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:9990
+ // question
+ if (Index >= NarrowByteWidth)
+ return L->getExtensionType() == ISD::ZEXTLOAD
----------------
Braces
================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:10045
+
+ auto Addresses16Bits = [](int Mask) {
+ int Low8 = Mask & 0xff;
----------------
Can this be a separate function? It's a lambda that doesn't capture anything
================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:10031
+ ExtType == ISD::EXTLOAD) {
+ return L->getMemoryVT().getSizeInBits() == 16;
+ }
----------------
arsenm wrote:
> Need to make sure this is scalar
This isn't checking for a scalar type?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142782/new/
https://reviews.llvm.org/D142782
More information about the llvm-commits
mailing list