[AArch64][FastISel] Handle CRC32 intrinsics
authorAlexis Engelke <engelke@in.tum.de>
Fri, 21 Apr 2023 12:15:04 +0000 (14:15 +0200)
committerAlexis Engelke <engelke@in.tum.de>
Fri, 28 Apr 2023 09:29:23 +0000 (11:29 +0200)
commitab21beaccc9d69339cc148151f1a4bec0c87a5bd
tree8a7653556fd41e727913fc1c2a05767697385319
parent8ead003d8948f1db02bb83d23b177dc545eaf669
[AArch64][FastISel] Handle CRC32 intrinsics

With a similar reason as D148023; some applications make heavy use of
the CRC32 intrinsic (e.g., as part of a hash function) and therefore
benefit from avoiding frequent SelectionDAG fallbacks. In our
application, we get a 2% compile-time improvement.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D148917
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/test/CodeGen/AArch64/arm64-fast-isel-crc32.ll [new file with mode: 0644]