[PATCH] D87384: [PowerPC] Add ISEL patterns for Mul with Imm.
EsmeYi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 08:12:27 PDT 2020
Esme created this revision.
Esme added reviewers: PowerPC, steven.zhang, nemanjai, jsji, qiucf.
Herald added subscribers: llvm-commits, shchenz, kbarton, hiraditya.
Herald added a project: LLVM.
Esme requested review of this revision.
If the multiplicand is a constant with following formats:
1. mul with **(2^N + int16_imm)** -> `mulli + rldicr`
2. mul with **(2^N + 2^M)** -> `rldicr + add + rldicr`
3. mul with **(2^N + 2^M)** -> `rldicr + sub + rldicr`
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87384
Files:
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/test/CodeGen/PowerPC/mulli.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87384.290740.patch
Type: text/x-patch
Size: 4969 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200909/f49111c1/attachment.bin>
More information about the llvm-commits
mailing list