llvm-project
0085ecaa - [AArch64] Add costs for ROTR and ROTL. (#169335)

Commit
12 days ago
[AArch64] Add costs for ROTR and ROTL. (#169335) A funnel shift with the first two operands is a rotate. AArch64 has scalar instructions for ror so can handle a ROTR by a constant or variant amount cheaply. A ROTL is a ROTR by the opposite amount, which for constants is cheap and for variable shifts requires an extra neg.
Author
Parents
Loading