[llvm] r269884 - Strengthen type assertion for ISD::VSELECT ensuring that the condition has the name number of elements as the destination type.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue May 17 23:55:55 PDT 2016


Author: ctopper
Date: Wed May 18 01:55:55 2016
New Revision: 269884

URL: http://llvm.org/viewvc/llvm-project?rev=269884&view=rev
Log:
Strengthen type assertion for ISD::VSELECT ensuring that the condition has the name number of elements as the destination type.

Modified:
    llvm/trunk/include/llvm/Target/TargetSelectionDAG.td

Modified: llvm/trunk/include/llvm/Target/TargetSelectionDAG.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetSelectionDAG.td?rev=269884&r1=269883&r2=269884&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetSelectionDAG.td (original)
+++ llvm/trunk/include/llvm/Target/TargetSelectionDAG.td Wed May 18 01:55:55 2016
@@ -167,7 +167,7 @@ def SDTSelect : SDTypeProfile<1, 3, [
 ]>;
 
 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




More information about the llvm-commits mailing list