diff options
author | Caroline Concatto <caroline.concatto@arm.com> | 2022-01-13 16:52:41 +0000 |
---|---|---|
committer | Caroline Concatto <caroline.concatto@arm.com> | 2022-02-03 19:18:30 +0000 |
commit | 961e954af592771f1323e41a049d25f433eaabb6 (patch) | |
tree | 76f973a1c2e6cc99381e40c31be3a154f738d1ea /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 8ada962a34cc40241670cb490cb7ed8ce3b98b30 (diff) | |
download | llvm-961e954af592771f1323e41a049d25f433eaabb6.zip llvm-961e954af592771f1323e41a049d25f433eaabb6.tar.gz llvm-961e954af592771f1323e41a049d25f433eaabb6.tar.bz2 |
[AArch64][SVE] Add more folds to make use of gather/scatter with 32-bit indices
In AArch64ISelLowering.cpp this patch implements this fold:
1) GEP (%ptr, SHL ((stepvector(A) + splat(%offset))) << splat(B)))
into GEP (%ptr + (%offset << B), step_vector (A << B))
The above transform simplifies the index operand so that it can be expressed
as i32 elements.
This allows using only one gather/scatter assembly instruction instead of two.
Patch by Paul Walker (@paulwalker-arm).
Depends on D117900
Differential Revision: https://reviews.llvm.org/D118345
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions