[llvm-commits] [llvm] r54141 - /llvm/trunk/lib/Target/TargetSelectionDAG.td
Duncan Sands
baldrick at free.fr
Mon Jul 28 12:17:22 PDT 2008
Author: baldrick
Date: Mon Jul 28 14:17:21 2008
New Revision: 54141
URL: http://llvm.org/viewvc/llvm-project?rev=54141&view=rev
Log:
Since build_vector is a variadic node, the number
of operands should be -1 not 0.
Modified:
llvm/trunk/lib/Target/TargetSelectionDAG.td
Modified: llvm/trunk/lib/Target/TargetSelectionDAG.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetSelectionDAG.td?rev=54141&r1=54140&r2=54141&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetSelectionDAG.td (original)
+++ llvm/trunk/lib/Target/TargetSelectionDAG.td Mon Jul 28 14:17:21 2008
@@ -389,7 +389,7 @@
[SDNPHasChain, SDNPMayStore, SDNPMemOperand]>;
def vector_shuffle : SDNode<"ISD::VECTOR_SHUFFLE", SDTVecShuffle, []>;
-def build_vector : SDNode<"ISD::BUILD_VECTOR", SDTypeProfile<1, 0, []>, []>;
+def build_vector : SDNode<"ISD::BUILD_VECTOR", SDTypeProfile<1, -1, []>, []>;
def scalar_to_vector : SDNode<"ISD::SCALAR_TO_VECTOR", SDTypeProfile<1, 1, []>,
[]>;
def vector_extract : SDNode<"ISD::EXTRACT_VECTOR_ELT",
More information about the llvm-commits
mailing list