[SystemZ] Fix the cost function for vector zero extend.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Mon, 31 Aug 2020 14:35:39 +0000 (16:35 +0200)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 21 Jun 2022 14:42:05 +0000 (16:42 +0200)
commitbfca9a0b991e33ff24a69835d7bb0e0985afc7bd
tree7f543223d0b97968ccfd7d598f4bd5724116299b
parente6ccb57bb3f6b761f2310e97fd6ca99eff42f73e
[SystemZ] Fix the cost function for vector zero extend.

Zero extend of a vector is done with either a single unpack or a vector
permute, and the TTI cost function should reflect this.

Review: Ulrich Weigand
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/SystemZ/int-cast.ll