[PATCH] D143143: [AArch64] Reassociate sub(x, add(m1, m2)) to sub(sub(x, m1), m2)

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 2 00:41:43 PST 2023


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, samtebbs, fhahn, labrinea.
Herald added subscribers: StephenFan, hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

The mid end will reassociate sub(sub(x, m1), m2) to sub(x, add(m1, m2)). This reassociates it back to allow the creation of more mls instructions.


https://reviews.llvm.org/D143143

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/arm64-vmul.ll
  llvm/test/CodeGen/AArch64/reassocmls.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143143.494188.patch
Type: text/x-patch
Size: 9861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230202/5f96506e/attachment.bin>


More information about the llvm-commits mailing list