Tighten description of ISD::BUILD_VECTOR
authorCameron McInally <mcinally@cray.com>
Wed, 8 Jul 2020 19:03:50 +0000 (14:03 -0500)
committerCameron McInally <mcinally@cray.com>
Wed, 8 Jul 2020 19:06:23 +0000 (14:06 -0500)
commit05ce9aaa69f9f58598730895bdb5535fea17213f
treeb3368298c1a60fbc6b2dbf25f0a613433169afbd
parentff7900d5def4f645a6675d99ad39a38d8a468a63
Tighten description of ISD::BUILD_VECTOR

VerifySDNode(...) in SelectionDAG.cpp shows that the operands of a BUILD_VECTOR must all be the same type. This patch cleans up the comment in ISDOpcodes.h to make that more obvious. Also, remove the requirement that the number of elements must be a power-of-2. That's not true.

Differential Revision: https://reviews.llvm.org/D83413
llvm/include/llvm/CodeGen/ISDOpcodes.h