Strengthen type assertion for ISD::VSELECT ensuring that the condition has the name number of elements as the destination type.

llvm-svn: 269884
This commit is contained in:
Craig Topper 2016-05-18 06:55:55 +00:00
parent 6afea51a58
commit 4b23ed79b3
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ def SDTSelect : SDTypeProfile<1, 3, [ // select
]>; ]>;
def SDTVSelect : SDTypeProfile<1, 3, [ // vselect def SDTVSelect : SDTypeProfile<1, 3, [ // vselect
SDTCisInt<1>, SDTCisSameAs<0, 2>, SDTCisSameAs<2, 3> SDTCisInt<1>, SDTCisSameAs<0, 2>, SDTCisSameAs<2, 3>, SDTCisSameNumEltsAs<0, 1>
]>; ]>;
def SDTSelectCC : SDTypeProfile<1, 5, [ // select_cc def SDTSelectCC : SDTypeProfile<1, 5, [ // select_cc