[PATCH] D127385: [AMDGPU] Basic implementation of isExtractSubvectorCheap
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 02:17:36 PDT 2022
foad added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:1589
+
+ // TODO: Add more cases that are cheap.
+ return Index == 0;
----------------
For VGPRs I think any extract starting at a dword boundary should be cheap, but for SGPRs it would need to start at a suitably aligned register number. So I don't know how to implement this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127385/new/
https://reviews.llvm.org/D127385
More information about the llvm-commits
mailing list