aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-11-15 17:42:53 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-11-15 17:42:53 +0000
commit924f1934190691a2eca6e8f6a0f0be25ba61bb7f (patch)
tree6f8225bb45941aba921900939b9ef61c8c56a33f /llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
parentb94ad1e1d383630f45c3e3d67d8a61a01d8045ed (diff)
downloadllvm-924f1934190691a2eca6e8f6a0f0be25ba61bb7f.zip
llvm-924f1934190691a2eca6e8f6a0f0be25ba61bb7f.tar.gz
llvm-924f1934190691a2eca6e8f6a0f0be25ba61bb7f.tar.bz2
[TTI] Reduction costs only need to include a single extract element cost
We were adding the entire scalarization extraction cost for reductions, which returns the total cost of extracting every element of a vector type. For reductions we don't need to do this - we just need to extract the 0'th element after the reduction pattern has completed. Fixes PR37731 Differential Revision: https://reviews.llvm.org/D54585 llvm-svn: 346970
Diffstat (limited to 'llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions