[SystemZ] Rework getInterleavedMemoryOpCost()
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 2 Nov 2018 17:15:36 +0000 (17:15 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 2 Nov 2018 17:15:36 +0000 (17:15 +0000)
commit79f2441eee0dd333dd2ac5763194059a77917c8c
treee2ee98345df3a7645e3906a3932073380c0847d6
parent11793f429f43a37ce75f39ef2d86788b0d46c9f1
[SystemZ] Rework getInterleavedMemoryOpCost()

Model this function more closely after the BasicTTIImpl version, with
separate handling of loads and stores. For loads, the set of actually loaded
vectors is checked.

This makes it more readable and just slightly more accurate generally.

Review: Ulrich Weigand
https://reviews.llvm.org/D53071

llvm-svn: 345998
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
llvm/test/Transforms/LoopVectorize/SystemZ/mem-interleaving-costs-02.ll [new file with mode: 0644]