[PATCH] D139418: [AArch64] GlobalIsel codegen for gpr CTZ

Ties Stuij via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 05:32:13 PST 2022


stuij created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
stuij requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

If feature CSSC is available, CTTZ intrinsics are lowered using the CTZ
instruction when using GlobalIsel.

spec:
https://developer.arm.com/documentation/ddi0602/2022-09/Base-Instructions/CTZ--Count-Trailing-Zeros-


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139418

Files:
  llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-cttz-zero-undef.mir
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-cttz.mir
  llvm/test/CodeGen/AArch64/GlobalISel/select-cttz.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139418.480444.patch
Type: text/x-patch
Size: 14487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221206/82c60bb5/attachment.bin>


More information about the llvm-commits mailing list