[SystemZ] Return scalarized costs for vector instructions on older archs.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 20 Feb 2020 18:40:30 +0000 (10:40 -0800)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 21 Feb 2020 17:17:37 +0000 (09:17 -0800)
commit41bd9ead35f60823c59367efe4f3d5ade87e756d
tree879df1051f6cd35d41b2aedf0633de0a8d046353
parent60023e347116e5004295e8c7f2f09cc1855d4d84
[SystemZ]  Return scalarized costs for vector instructions on older archs.

A cost query for a vector instruction should return a cost even without
target vector support, and not trigger an assert.

VectorCombine does this with an input containing source code vectors.

Review: Ulrich Weigand
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/SystemZ/oldarch-vectors.ll [new file with mode: 0644]