[PATCH] D132196: [PowerPC] Add combine logic to use MADDLD/MADDHD/MADDHDU in multiply-add patterns

Ting Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 22:32:57 PDT 2022


tingwang updated this revision to Diff 457175.
tingwang added a comment.

Address comments:
(1) Add `isBeforeLegalize()` check (updated function scope to allow access to DAGCombinerInfo).
(2) Add test case to show invalid case is not transformed.
(3) Update code structure, reduce duplicated logic.
(4) Add check to identify cases which lead to zero higher half result.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132196/new/

https://reviews.llvm.org/D132196

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.h
  llvm/test/CodeGen/PowerPC/add-sub-int128-madd.ll
  llvm/test/CodeGen/PowerPC/mulld.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132196.457175.patch
Type: text/x-patch
Size: 12089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220901/1cb39cc2/attachment.bin>


More information about the llvm-commits mailing list