[SystemZ] Skip DAGCombining of vector node for older subtargets.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 31 Mar 2017 13:22:59 +0000 (13:22 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 31 Mar 2017 13:22:59 +0000 (13:22 +0000)
commit56bb0857e92c9f578916e83adf692e85f04ee428
tree72ebcbaa00fed59c4a8755c6c4721672584bac68
parent3add9f9fc75ddf65f5704a1035f5c464d31a1470
[SystemZ]  Skip DAGCombining of vector node for older subtargets.

Even on older subtargets that lack vector support, there may be vector values
with just one element in the input program. These are converted during DAG
legalization to scalar values.

The pre-legalize SystemZ DAGCombiner methods should in this circumstance not
touch these nodes. This patch adds a check for this in
SystemZTargetLowering::combineEXTRACT_VECTOR_ELT().

Review: Ulrich Weigand
llvm-svn: 299213
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/test/CodeGen/SystemZ/extract-vector-elt-zEC12.ll [new file with mode: 0644]