[PATCH] D123782: [AArch64] Generate AND in place of CSEL for Table Based CTTZ lowering in -O3

Rahul via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 08:57:24 PDT 2022


rahular-rrlogic updated this revision to Diff 424924.
rahular-rrlogic marked an inline comment as done.
rahular-rrlogic added a comment.

Added condition to check if X in icmp and cttz are the same and added code to handle select (icmp ne X, 0), (cttz X), 0. Updated test for the same.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123782/new/

https://reviews.llvm.org/D123782

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/table-based-cttz.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123782.424924.patch
Type: text/x-patch
Size: 3825 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220425/44257736/attachment.bin>


More information about the llvm-commits mailing list