[PATCH] D57357: [GlobalISel][AArch64] Add instruction selection support for @llvm.log2
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 28 13:44:46 PST 2019
paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, volkan, kristof.beyls, javed.absar, rovka.
This teaches GlobalISel to emit a RTLib call for @llvm.log2 when it encounters it.
It updates the existing floating point tests to show that we don't fall back on the intrinsic, and select the correct instructions. It also adds a legalizer test for G_FLOG2.
https://reviews.llvm.org/D57357
Files:
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
lib/Target/AArch64/AArch64LegalizerInfo.cpp
lib/Target/AArch64/AArch64RegisterBankInfo.cpp
test/CodeGen/AArch64/GlobalISel/legalize-log2.mir
test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
test/CodeGen/AArch64/arm64-vfloatintrinsics.ll
test/CodeGen/AArch64/f16-instructions.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57357.183953.patch
Type: text/x-patch
Size: 13247 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190128/a139c7e5/attachment.bin>
More information about the llvm-commits
mailing list