[PATCH] D116737: [DAG][AArch64][SVE] Fix VLS mulh code generation

David Truby via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 6 05:10:35 PST 2022


DavidTruby created this revision.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
DavidTruby requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Introducing lowering for extending loads regressed an optimisation in
VLS codegen. Since the extend is merged into the load before the mulh is
generated, a standard mul followed by a lsr and truncating store is used
instead. This patch causes the mulh to be generated before the extends
are merged into the loads.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116737

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/test/CodeGen/AArch64/sve-fixed-length-int-mulh.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116737.397855.patch
Type: text/x-patch
Size: 26687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220106/593f89be/attachment.bin>


More information about the llvm-commits mailing list