[AArch64][GlobalISel] Support for folding G_ROTR as shifted operands.
authorAmara Emerson <amara@apple.com>
Thu, 2 Sep 2021 23:54:52 +0000 (16:54 -0700)
committerAmara Emerson <amara@apple.com>
Fri, 3 Sep 2021 04:37:24 +0000 (21:37 -0700)
commit6d9505b8e010d9d01214ccae1d3ee457ec2b8a22
treea18077aed7228961a3b7d1f6d95c5d79462a9e06
parentd0f9553ef564de1ea0749ee3519d5505920dc29f
[AArch64][GlobalISel] Support for folding G_ROTR as shifted operands.

This allows selection like: eor w0, w1, w2, ror #8

Saves 500 bytes on ClamAV -Os, which is 0.1%.

Differential Revision: https://reviews.llvm.org/D109206
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-rotate.mir [new file with mode: 0644]