[SystemZ] Properly check number of operands in getCmpOpsType()
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 3 May 2017 13:33:45 +0000 (13:33 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 3 May 2017 13:33:45 +0000 (13:33 +0000)
commitf40eac508824a455b49c3998837c74234b43759a
treec48d167c906b56b5d27516896db56044d0b55d92
parent88619946b64be13048eb4116b8d6b138dbc5f7c2
[SystemZ]  Properly check number of operands in getCmpOpsType()

It is needed to check that the number of operands are 2 when
finding the case of a logic combination, e.g. 'and' of two compares.

Review: Ulrich Weigand
llvm-svn: 302022
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp