]> granicus.if.org Git - llvm/commit
[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)
commit1f79e38e073d2dada75627251d94a27fa4a568df
tree1a4d779251cb1bc1e46bc0e6baba4519d75868ac
parent5f4e285a08ffef142e2cf094a9351dff8096f16c
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299213 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp
test/CodeGen/SystemZ/extract-vector-elt-zEC12.ll [new file with mode: 0644]