]> granicus.if.org Git - llvm/commit
[SelectionDAG] NFC patch removing a redundant check.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 6 Apr 2017 13:00:37 +0000 (13:00 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 6 Apr 2017 13:00:37 +0000 (13:00 +0000)
commitff14b9ebc7a06ecd170651ecfeb4e4a26bcd4b31
tree39867dcc84e93d13364e422f6631fb9c977d67fd
parented65bfc6c900e480754b3b819bf1354ffe58b748
[SelectionDAG]  NFC patch removing a redundant check.

Since the BUILD_VECTOR has already been checked by
isBuildVectorOfConstantSDNodes() in SelectionDAG::getNode() for a
SIGN_EXTEND_INREG, it can be assumed that Op is always either undef or a
ConstantSDNode, and Ops.size() will always equal VT.getVectorNumElements().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299647 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp