[AArch64] Add GPR rr instructions to isAssociativeAndCommutative
authorDavid Green <david.green@arm.com>
Wed, 16 Nov 2022 12:39:13 +0000 (12:39 +0000)
committerDavid Green <david.green@arm.com>
Wed, 16 Nov 2022 12:39:13 +0000 (12:39 +0000)
commit5f7f484ee54ebbf702ee4c5fe9852502dc237121
tree10fe213640854ac5f8e23c3c1f25bebb756f6245
parent49510c50200cf58c9f2dedf4e4ab36a16503878e
[AArch64] Add GPR rr instructions to isAssociativeAndCommutative

This adds some more scalar instructions that are both associative and
commutative to isAssociativeAndCommutative, allowing the machine
combiner to reassociate them to reduce critical path length.

Differential Revision: https://reviews.llvm.org/D134260
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/arm64-atomic.ll
llvm/test/CodeGen/AArch64/GlobalISel/arm64-pcsections.ll
llvm/test/CodeGen/AArch64/aarch64-dynamic-stack-layout.ll
llvm/test/CodeGen/AArch64/arm64-rev.ll
llvm/test/CodeGen/AArch64/cmp-chains.ll
llvm/test/CodeGen/AArch64/reduce-and.ll
llvm/test/CodeGen/AArch64/reduce-or.ll
llvm/test/CodeGen/AArch64/reduce-xor.ll
llvm/test/CodeGen/AArch64/swift-return.ll
llvm/test/CodeGen/AArch64/vecreduce-and-legalization.ll