[PATCH] D58155: [GlobalISel][AArch64] Legalize + select some llvm.ctlz.* intrinsics

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 12 15:53:10 PST 2019


paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, kristof.beyls, javed.absar, rovka.

Legalize/select llvm.ctlz.* for types that the importer can grab easily.

Add select-ctlz to show that we actually select them. Update arm64-clrsb.ll and arm64-vclz.ll to show that we perform valid transformations in optimized builds, and document where GISel can improve.


https://reviews.llvm.org/D58155

Files:
  lib/Target/AArch64/AArch64LegalizerInfo.cpp
  test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
  test/CodeGen/AArch64/GlobalISel/select-ctlz.mir
  test/CodeGen/AArch64/arm64-clrsb.ll
  test/CodeGen/AArch64/arm64-vclz.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58155.186555.patch
Type: text/x-patch
Size: 11772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190212/e86383e7/attachment.bin>


More information about the llvm-commits mailing list