]> granicus.if.org Git - llvm/commit
[SelectionDAG] Add asserts to verify the vectorness of input and output types of...
authorCraig Topper <craig.topper@intel.com>
Thu, 2 May 2019 22:26:26 +0000 (22:26 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 2 May 2019 22:26:26 +0000 (22:26 +0000)
commita49df1725a43694d01d43276d60d4f607125ff49
treeadf4f8b8803696b9f2f2e800c0f7b07e09e466a1
parent74ddb12afb4a935d6ab3c1979171f7c79b18e4ee
[SelectionDAG] Add asserts to verify the vectorness of input and output types of TRUNCATE/ZERO_EXTEND/ANY_EXTEND/SIGN_EXTEND agree

As a result of the underlying cause of PR41678 we created an ANY_EXTEND node with a scalar result type and v1i1 input type. Ideally we would have asserted for this instead of letting it go through to instruction selection and generate bad machine IR

Differential Revision: https://reviews.llvm.org/D61463

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