]> granicus.if.org Git - llvm/commit
[CostModel][X86] Improve sum reduction costs.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 12 Oct 2019 13:21:50 +0000 (13:21 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 12 Oct 2019 13:21:50 +0000 (13:21 +0000)
commitfb4c141673e7296bd9e8c82d0925244d543d048f
treeaf8bc15f2ade2b9ac1a08ab201d39cbad68e260c
parent45c253480afdac88201730dc8ff3a8ff89d20288
[CostModel][X86] Improve sum reduction costs.

I can't see any notable differences in costs between SSE2 and SSE42 arches for FADD/ADD reduction, so I've lowered the target to just SSE2.

I've also added vXi8 sum reduction costs in line with the PSADBW codegen and discussions on PR42674.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374655 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetTransformInfo.cpp
test/Analysis/CostModel/X86/reduce-add.ll
test/Analysis/CostModel/X86/reduction.ll
test/Transforms/SLPVectorizer/X86/remark_horcost.ll