[AArch64] Add A+B+1 and A-B-1 macro fusion for Ampere1A
authorPhilipp Tomsich <philipp.tomsich@vrull.eu>
Tue, 24 Jan 2023 17:55:17 +0000 (18:55 +0100)
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>
Sun, 29 Jan 2023 16:25:12 +0000 (17:25 +0100)
commit112f352bc0ad2f4b17569cc8ea339dc3940451cd
treefb805c576fb5408b757445e4f24359117b9d1422
parent20167e8483159536c13b2cda763047cbd6d7d62c
[AArch64] Add A+B+1 and A-B-1 macro fusion for Ampere1A

The Ampere1A core supports a new fusion pattern that optimises the
case of A+B+1 and A-B-1.  Add support.

Depends on D142396

Differential Revision: https://reviews.llvm.org/D142502
llvm/lib/Target/AArch64/AArch64.td
llvm/lib/Target/AArch64/AArch64MacroFusion.cpp
llvm/test/CodeGen/AArch64/macro-fusion-addsub-2reg-const1.mir [new file with mode: 0644]