Files
archived-llvm/include/llvm/CodeGen
Simon Pilgrim 2d4f754c33 [TTI] Reduction costs only need to include a single extract element cost (REAPPLIED)
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

Rebased and reapplied after being reverted in rL347541 due to PR39774 - which was fixed by D54955/rL347759 and D55017/rL347997

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348076 91177308-0d34-0410-b5e6-96231b3b80d8
2018-12-01 14:18:31 +00:00
..
2018-10-30 01:11:52 +00:00
2018-07-30 19:41:25 +00:00
2018-10-24 21:07:38 +00:00
2018-10-19 20:17:05 +00:00