[PATCH] D60181: [PowerPC] More precise exploitation of P9 maddld instruction when operands are constant
Zixuan Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 2 23:31:23 PDT 2019
wuzish created this revision.
wuzish added reviewers: hfinkel, nemanjai, jsji.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
There are 3 operands of maddld, (add (mul %1, %2), %3) and sometimes they are constant.
If there is constant operand, it takes extra li to materialize the operand, and one more extra register too.
So it's not profitable to use maddld to optimize mul-add pattern.
Repository:
rL LLVM
https://reviews.llvm.org/D60181
Files:
llvm/lib/Target/PowerPC/PPCInstr64Bit.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/CodeGen/PowerPC/maddld.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60181.193437.patch
Type: text/x-patch
Size: 10343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190403/83a3e276/attachment.bin>
More information about the llvm-commits
mailing list