summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-05-18 06:55:55 +0000
committerCraig Topper <craig.topper@gmail.com>2016-05-18 06:55:55 +0000
commit4b23ed79b303960d1edd86b116afc4b920337a0b (patch)
tree15d1d39feee3ac73a70b99acb5e94933f540382c
parent6afea51a58e7b8603c8ff696d04291afc7f0b35e (diff)
downloadbcm5719-llvm-4b23ed79b303960d1edd86b116afc4b920337a0b.tar.gz
bcm5719-llvm-4b23ed79b303960d1edd86b116afc4b920337a0b.zip
Strengthen type assertion for ISD::VSELECT ensuring that the condition has the name number of elements as the destination type.
llvm-svn: 269884
-rw-r--r--llvm/include/llvm/Target/TargetSelectionDAG.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Target/TargetSelectionDAG.td b/llvm/include/llvm/Target/TargetSelectionDAG.td
index c679051fbf0..0323207a9da 100644
--- a/llvm/include/llvm/Target/TargetSelectionDAG.td
+++ b/llvm/include/llvm/Target/TargetSelectionDAG.td
@@ -167,7 +167,7 @@ def SDTSelect : SDTypeProfile<1, 3, [ // select
]>;
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
OpenPOWER on IntegriCloud