[TTI] Fix default costs for interleaved accesses
authorSilviu Baranga <silviu.baranga@arm.com>
Mon, 3 Aug 2015 14:00:58 +0000 (14:00 +0000)
committerSilviu Baranga <silviu.baranga@arm.com>
Mon, 3 Aug 2015 14:00:58 +0000 (14:00 +0000)
commitb65ab9a410df7ec225862281930a40491e5965e0
tree5ea301d4708e0b666e5b80a43a4d20c901ac06d0
parentd58af05fd8f1c5370d82de4ce56458779d3e02dc
[TTI] Fix default costs for interleaved accesses

Summary:
Modify the cost calculation function for interleaved accesses
to use the target-specific costs for insert/extract element and
memory operations.

This better models the case where the backend can't match
the interleaved group, and we are forced to use a wide load
and shuffle vectors.

Interleaved accesses are not enabled by default, so this shouldn't
cause a performance change.

Reviewers: jmolloy

Subscribers: jmolloy, llvm-commits

Differential Revision: http://reviews.llvm.org/D11718

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243875 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/BasicTTIImpl.h