OSDN Git Service

[GlobalISel][AArch64] Legalize + select some llvm.ctlz.* intrinsics
authorJessica Paquette <jpaquette@apple.com>
Mon, 18 Feb 2019 23:33:24 +0000 (23:33 +0000)
committerJessica Paquette <jpaquette@apple.com>
Mon, 18 Feb 2019 23:33:24 +0000 (23:33 +0000)
commit1d3cbd733129899609fbf491b33ac63ec3cf5b55
tree52999e8a65da7d00aab77c46ef47734d78098f59
parent09f3b5ecb16e50d1752dbb57a0d0c3c170dd5537
[GlobalISel][AArch64] Legalize + select some llvm.ctlz.* intrinsics

Legalize/select llvm.ctlz.*

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.

Differential Revision: https://reviews.llvm.org/D58155

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354299 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
lib/Target/AArch64/AArch64LegalizerInfo.cpp
test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
test/CodeGen/AArch64/GlobalISel/select-ctlz.mir [new file with mode: 0644]
test/CodeGen/AArch64/arm64-clrsb.ll
test/CodeGen/AArch64/arm64-vclz.ll