[PATCH] D137721: [AArch64] Optimize more memcmp when the result is tested for [in]equality with 0

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 9 08:31:11 PST 2022


Allen created this revision.
Allen added reviewers: dmgreen, efriedma, spatel.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
Allen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

We already surpport the or (xor a, b), (xor c, d) with D136244 <https://reviews.llvm.org/D136244>, while it should
capture more cases than just bcmp according the comment on
https://reviews.llvm.org/D136672, so this patch try to fold continuous
comparison series.


https://reviews.llvm.org/D137721

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/bcmp-inline-small.ll
  llvm/test/CodeGen/AArch64/bcmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137721.474285.patch
Type: text/x-patch
Size: 11111 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221109/0388c338/attachment.bin>


More information about the llvm-commits mailing list