[PATCH] D57239: [TTI] Add generic SADDSAT/SSUBSAT costs
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 25 06:51:13 PST 2019
RKSimon created this revision.
RKSimon added reviewers: nikic, spatel.
Add generic costs calculation for SADDSAT/SSUBSAT intrinsics, this uses generic costs for sadd_with_overflow/ssub_with_overflow, an extra sign comparison + a selects based on the sign/overflow.
This completes PR40316
Repository:
rL LLVM
https://reviews.llvm.org/D57239
Files:
include/llvm/CodeGen/BasicTTIImpl.h
test/Analysis/CostModel/X86/arith-ssat.ll
test/Transforms/SLPVectorizer/X86/arith-add-ssat.ll
test/Transforms/SLPVectorizer/X86/arith-sub-ssat.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57239.183532.patch
Type: text/x-patch
Size: 140425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190125/2a2989ca/attachment-0001.bin>
More information about the llvm-commits
mailing list