[SystemZ] Adjust cost functions for subtargets that use LI + LOC instead of IPM
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 14 Sep 2018 06:46:55 +0000 (06:46 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 14 Sep 2018 06:46:55 +0000 (06:46 +0000)
commit77df2f2f38766e7c9fdc4169df48f4df35109ad7
tree11433924b19ae1718dfe8d5ac80ee76f29e44aa7
parent4c1b815d39a078ebfe6457560ad67f382a7c439f
[SystemZ] Adjust cost functions for subtargets that use LI + LOC instead of IPM

After recent improvements which makes better use of LOC instead of IPM, the
TTI cost functions also needs to be updated to reflect this.

This involves sext, zext and xor of i1.

The tests were updated so that for z13 the new costs are expected, while the
old costs are still checked for on zEC12.

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

llvm-svn: 342207
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/SystemZ/cmp-ext-01.ll [moved from llvm/test/Analysis/CostModel/SystemZ/cmp-ext.ll with 96% similarity]
llvm/test/Analysis/CostModel/SystemZ/cmp-ext-02.ll [new file with mode: 0644]
llvm/test/Analysis/CostModel/SystemZ/scalar-cmp-cmp-log-sel.ll