[SystemZ::TTI] Accurate costs for i1->double vector conversions
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 1 Nov 2018 09:01:51 +0000 (09:01 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 1 Nov 2018 09:01:51 +0000 (09:01 +0000)
commitf15a53bc81377aa0c5e3864fd9cb41fa667a011d
tree52d5b8bbfc8e0e02ef4b501d5c579f5c5f0cac13
parent1bb9aea56bdbac6fa8cb28d18a0b6c9879bee12b
[SystemZ::TTI]  Accurate costs for i1->double vector conversions

This factors out a new method getBoolVecToIntConversionCost() containing the
code for vector sext/zext of i1, in order to reuse it for i1 to double vector
conversions.

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

llvm-svn: 345817
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
llvm/test/Analysis/CostModel/SystemZ/cmp-tofp.ll [new file with mode: 0644]