[PATCH] D134260: [AArch64] Add GPR rr instructions to isAssociativeAndCommutative

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 01:13:38 PDT 2022


dmgreen created this revision.
dmgreen added reviewers: labrinea, jaykang10, haicheng, samtebbs, Carrot.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D134260

Files:
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/arm64-atomic.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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134260.461479.patch
Type: text/x-patch
Size: 31873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220920/0fd5f89a/attachment.bin>


More information about the llvm-commits mailing list