[PATCH] D148311: [AArch64] Combine add(extract v1i64) into v1i64 add
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 14 01:39:46 PDT 2023
dmgreen created this revision.
dmgreen added reviewers: jaykang10, SjoerdMeijer, efriedma, bipmis.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.
This helps fix a regression from D148309 <https://reviews.llvm.org/D148309> where a shift + add was no longer combined into a ssra. It looks for add's with v1i64 extract operands and converts them to v1i64 adds. The other operand needs to be something that is easily converted to a v1i64, in this case it currently just checks for a load.
https://reviews.llvm.org/D148311
Files:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/add-extract.ll
llvm/test/CodeGen/AArch64/arm64-vshift.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148311.513480.patch
Type: text/x-patch
Size: 5502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230414/8e2d4741/attachment.bin>
More information about the llvm-commits
mailing list