]> granicus.if.org Git - llvm/commit
[TTI] Add generic UADDSAT/USUBSAT costs
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 24 Jan 2019 12:27:10 +0000 (12:27 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 24 Jan 2019 12:27:10 +0000 (12:27 +0000)
commit2e5edf4b8d6d685aa79498ce553b1dfc5d79c87c
treebe6ebbf89104ebc19cbb7bad3344bf52fab08733
parent37114573a1ff8da79ffd4a0ed5824664731ae7d3
[TTI] Add generic UADDSAT/USUBSAT costs

Add generic costs calculation for UADDSAT/USUBSAT intrinsics, this fallbacks to using generic costs for uadd_with_overflow/usub_with_overflow + a select.

Differential Revision: https://reviews.llvm.org/D56907

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352044 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/BasicTTIImpl.h
test/Analysis/CostModel/X86/arith-usat.ll
test/Transforms/SLPVectorizer/X86/arith-add-usat.ll
test/Transforms/SLPVectorizer/X86/arith-sub-usat.ll