[PATCH] D57925: [TTI] Add generic cost model for fixed point smul/umul
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 7 13:32:21 PST 2019
RKSimon created this revision.
RKSimon added reviewers: leonardchan, spatel, nikic.
Herald added a project: LLVM.
Based on an IR equivalent of target lowering's generic expansion - target specific costs will typically be lower (IR doesn't have a good mull/mulh equivalent) but we need a baseline.
An alternative would be to assume the mull/mulh cost is the same as 2 * mul - what do people think?
Repository:
rL LLVM
https://reviews.llvm.org/D57925
Files:
include/llvm/CodeGen/BasicTTIImpl.h
test/Analysis/CostModel/X86/arith-fix.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57925.185858.patch
Type: text/x-patch
Size: 60402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190207/71dc183f/attachment.bin>
More information about the llvm-commits
mailing list